fix iconv buffer overflow converting to legacy JIS-based encodings
authorWill Dietz <w@wdtz.org>
Tue, 1 May 2018 19:16:44 +0000 (14:16 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 May 2018 20:27:42 +0000 (16:27 -0400)
commit55a661ff5ec5c8192091ec0bd74424500761b08d
treef67da398fac8ac5847f73eb44b5856677fe28dd3
parent40bae2d32fd6f3ffea437fa745ad38a1fe77b27e
fix iconv buffer overflow converting to legacy JIS-based encodings

maintainer's notes:

commit a223dbd27ae36fe53f9f67f86caf685b729593fc added the reverse
conversions to JIS-based encodings, but omitted the check for remining
buffer space in the case where the next character to be written was
single-byte, allowing conversion to continue past the end of the
destination buffer.
src/locale/iconv.c