summaryrefslogtreecommitdiff
path: root/src/stdio/open_memstream.c
AgeCommit message (Collapse)AuthorLines
2011-09-04memstreams: fix incorrect handling of file pos > current sizeRich Felker-2/+2
the addition is safe and cannot overflow because both operands are positive when considered as signed quantities.
2011-09-04optimize seek function for memory streamsRich Felker-12/+3
2011-09-04fix twos complement overflow bug in mem streams boundary checkRich Felker-1/+1
the expression -off is not safe in case off is the most-negative value. instead apply - to base which is known to be non-negative and bounded within sanity.
2011-09-03fix some length calculations in memory streamsRich Felker-1/+1
2011-09-03implement open_memstreamRich Felker-0/+94
this is the first attempt, and may have bugs. only minimal testing has been performed.