diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-25 10:40:25 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-25 10:40:25 -0400 |
commit | 5efc6af4ebb9d50eb978d0338835544fdfea0396 (patch) | |
tree | 5148e8fc7dddb1dfcac614ca0ccc1c4a5fc0f326 /src/string/wmemcpy.c | |
parent | db9915ee97670885f3f2302d8c41ac6c61f2d77e (diff) | |
download | musl-5efc6af4ebb9d50eb978d0338835544fdfea0396.tar.gz |
fix 2 eof-related bugs in scanf
1. failed match of literal chars from the format string would always
return matching failure rather than input failure at eof, leading to
infinite loops in some programs.
2. unread of eof would wrongly adjust the character counts reported by
%n, yielding an off-by-one error.
Diffstat (limited to 'src/string/wmemcpy.c')
0 files changed, 0 insertions, 0 deletions