diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-07-16 21:24:02 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-07-16 21:24:02 -0400 |
commit | 94a0171d807dc94302d6505041fc58879c27f3bd (patch) | |
tree | 84790261ea40496a5fc8649bda75bad5db5c1d47 /include/shadow.h | |
parent | 47d027ee1a44829819c345287623fe75374893ab (diff) | |
download | musl-94a0171d807dc94302d6505041fc58879c27f3bd.tar.gz |
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 'include/shadow.h')
0 files changed, 0 insertions, 0 deletions