This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug locale/19519] iconv(1) with -c option hangs on illegal multi-byte sequences (CVE-2016-10228)


https://sourceware.org/bugzilla/show_bug.cgi?id=19519

--- Comment #10 from Florian Weimer <fweimer at redhat dot com> ---
Perhaps we should do the following:

(1) -c should add //IGNORE to the conversions if not already there.

(2) The conversion functions should be adjusted to make progress in //IGNORE. 
See bug 13541.

(3) If the iconv function does not make progress, skip over individual input
bytes.  With (2), this is only used as a last resort, to avoid a hang.


We can probably implement (1) and (3) for this bug.  (2) is mostly a
charset-specific quality issue after that.  Even then, the scope of this bug is
a bit larger than what I expected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]