about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-07-16 21:24:02 -0400
committerRich Felker <dalias@aerifal.cx>2011-07-16 21:24:02 -0400
commit94a0171d807dc94302d6505041fc58879c27f3bd (patch)
tree84790261ea40496a5fc8649bda75bad5db5c1d47 /Makefile
parent47d027ee1a44829819c345287623fe75374893ab (diff)
downloadmusl-94a0171d807dc94302d6505041fc58879c27f3bd.tar.gz
musl-94a0171d807dc94302d6505041fc58879c27f3bd.tar.xz
musl-94a0171d807dc94302d6505041fc58879c27f3bd.zip
fix logic error in fread
fread was calling f->read without checking that the file was in
reading mode. this could:
1. crash, if f->read was a null pointer
2. cause unwanted blocking on a terminal already at eof
3. allow reading on a write-only file
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions