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