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 /src/locale/codepages.h | |
parent | 47d027ee1a44829819c345287623fe75374893ab (diff) | |
download | musl-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 'src/locale/codepages.h')
0 files changed, 0 insertions, 0 deletions