[PATCH] iconvdata: IBM1390/IBM1399 encoders read past input bounds (bug 34914)
Andreas Schwab
schwab@suse.de
Mon Nov 16 11:29:02 GMT 2026
On Nov 13 2026, Florian Weimer wrote:
> Please avoid out-of-bounds pointer arithmetic, given that you are
> changing this line anyway. I think the condition should be:
>
> cmbp->res1 == ch && inend - inptr >= 8
Fixed.
> I wonder if
>
> /* XXX if last char is beginning of combining store in state */ \
>
> results in a hang with the right buffer boundaries because we never mage
> forward progress? Or do we just produce the wrong output?
The character will be consumed but encoded as individual character
instead of being combined with the one from the next buffer.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
More information about the Libc-alpha
mailing list