diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-11-07 20:39:59 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-11-07 20:39:59 -0500 |
commit | 7442442ccc665641a8827177e8e7ed45bbbd6584 (patch) | |
tree | 1131612f9a89aeb7a15f809d1b358186bb02159d /src/math/exp2l.c | |
parent | bc1e7731cee963e422575f81048792f4d5db9641 (diff) | |
download | musl-7442442ccc665641a8827177e8e7ed45bbbd6584.tar.gz musl-7442442ccc665641a8827177e8e7ed45bbbd6584.tar.xz musl-7442442ccc665641a8827177e8e7ed45bbbd6584.zip |
fix swprintf internal buffer state and error handling
the swprintf write callback never reset its buffer pointers, so after its 256-byte buffer filled up, it would keep repeating those bytes over and over in the output until the destination buffer filled up. it also failed to set the error indicator for the stream on EILSEQ, potentially allowing output to continue after the error.
Diffstat (limited to 'src/math/exp2l.c')
0 files changed, 0 insertions, 0 deletions