diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-04-14 22:32:42 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-04-14 22:32:42 -0400 |
commit | b9dd43db04ca312c3c1cc6ddc77e8f5bf559e72d (patch) | |
tree | 2d6a2a27eef35003b7a99481d70d62c5d4c11159 /include/pty.h | |
parent | 0115a6ed964f4afe87847a252363801e96194f0b (diff) | |
download | musl-b9dd43db04ca312c3c1cc6ddc77e8f5bf559e72d.tar.gz musl-b9dd43db04ca312c3c1cc6ddc77e8f5bf559e72d.tar.xz musl-b9dd43db04ca312c3c1cc6ddc77e8f5bf559e72d.zip |
fix signedness error handling invalid multibyte sequences in regexec
the "< 0" test was always false due to use of an unsigned type. this resulted in infinite loops on 32-bit machines (adding -1U to a pointer is the same as adding -1) and crashes on 64-bit machines (offsetting the string pointer by 4gb-1b when an illegal sequence was hit).
Diffstat (limited to 'include/pty.h')
0 files changed, 0 insertions, 0 deletions