This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug locale/19418] iconv should stop reading from 'inbuf' when 'outbytesleft' is zero
- From: "schwab at linux-m68k dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 05 Jan 2016 17:55:47 +0000
- Subject: [Bug locale/19418] iconv should stop reading from 'inbuf' when 'outbytesleft' is zero
- Auto-submitted: auto-generated
- References: <bug-19418-131 at http dot sourceware dot org/bugzilla/>
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.