aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/open_wmemstream.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* memstreams: fix incorrect handling of file pos > current size•••the addition is safe and cannot overflow because both operands are positive when considered as signed quantities. Rich Felker2011-09-041-2/+2
* optimize seek function for memory streamsRich Felker2011-09-041-12/+3
* fix twos complement overflow bug in mem streams boundary check•••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. Rich Felker2011-09-041-1/+1
* fix some length calculations in memory streamsRich Felker2011-09-031-2/+2
* implement open_wmemstream•••not heavily tested, but it seems to be correct, including the odd behavior that seeking is in terms of wide character count. this precludes any simple buffering, so we just make the stream unbuffered. Rich Felker2011-09-031-0/+95