summaryrefslogtreecommitdiff
path: root/src/math/sqrt_data.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2025-02-12 17:06:30 -0500
committerRich Felker <dalias@aerifal.cx>2025-02-12 17:06:30 -0500
commitc47ad25ea3b484e10326f933e927c0bc8cded3da (patch)
tree2c1d63ea8a44fdba4477fcb505ab3a357a20bb08 /src/math/sqrt_data.h
parent4c4f15dae57125e5b65b9690901384ae501d38e2 (diff)
downloadmusl-c47ad25ea3b484e10326f933e927c0bc8cded3da.tar.gz
iconv: harden UTF-8 output code path against input decoder bugsHEADmaster
the UTF-8 output code was written assuming an invariant that iconv's decoders only emit valid Unicode Scalar Values which wctomb can encode successfully, thereby always returning a value between 1 and 4. if this invariant is not satisfied, wctomb returns (size_t)-1, and the subsequent adjustments to the output buffer pointer and remaining output byte count overflow, moving the output position backwards, potentially past the beginning of the buffer, without storing any bytes.
Diffstat (limited to 'src/math/sqrt_data.h')
0 files changed, 0 insertions, 0 deletions