aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/rewind.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-04 00:06:01 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-04 00:06:01 -0400
commit32d67e938e8da0f37c59247acee8b10eaf9a113c (patch)
treee87b7b5da7700f8af18ce90ceef850398ba9947c /src/stdio/rewind.c
parentimplement fmemopen (diff)
downloadgrovel-32d67e938e8da0f37c59247acee8b10eaf9a113c.tar.gz
grovel-32d67e938e8da0f37c59247acee8b10eaf9a113c.tar.xz
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.
Diffstat (limited to 'src/stdio/rewind.c')
0 files changed, 0 insertions, 0 deletions