Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-09-04 | memstreams: fix incorrect handling of file pos > current size | Rich Felker | 1 | -2/+2 | |
the addition is safe and cannot overflow because both operands are positive when considered as signed quantities. | |||||
2011-09-04 | optimize seek function for memory streams | Rich Felker | 1 | -12/+3 | |
2011-09-04 | fix twos complement overflow bug in mem streams boundary check | Rich Felker | 1 | -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-03 | fix some length calculations in memory streams | Rich Felker | 1 | -2/+2 | |
2011-09-03 | implement open_wmemstream | Rich Felker | 1 | -0/+95 | |
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. |