summaryrefslogtreecommitdiff
path: root/src/internal/futex.h
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 /src/internal/futex.h
parent47d027ee1a44829819c345287623fe75374893ab (diff)
downloadmusl-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 'src/internal/futex.h')
0 files changed, 0 insertions, 0 deletions