[Bug locale/19418] iconv should stop reading from 'inbuf' when 'outbytesleft' is zero
schwab@linux-m68k.org
sourceware-bugzilla@sourceware.org
Tue Jan 5 17:55:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=19418
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
The standard is very clear that there must be *inbytesleft bytes available at
*inbuf. There is nothing that forbids accessing all bytes in *inbuf, the only
requirement is that *inbuf and *inbytesleft must be accurate on return. It is
impossible in general to know how much space is needed in *outbuf before
reading the next bytes from *inbuf.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list