From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BC48386F839; Sun, 7 Jun 2020 05:37:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BC48386F839 From: "fw at deneb dot enyo.de" To: glibc-bugs@sourceware.org Subject: [Bug locale/2373] Restrict UTF-8 to 17 planes, as required by RFC 3629 Date: Sun, 07 Jun 2020 05:37:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: locale X-Bugzilla-Version: 2.3.6 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fw at deneb dot enyo.de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2020 05:37:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D2373 Florian Weimer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fw at deneb dot enyo.de --- Comment #9 from Florian Weimer --- (In reply to Andreas Schwab from comment #7) > RFC 2044 defines UTF-8 as a 1-6 octet encoding, referencing ISO/IEC > 10646-1:1993 as the source. This was eventually updated by RFC 3629, whi= ch > introduced the U+10FFFF limit, but citing ISO/IEC 10646-1:2000 as without > that limit. Where? I think RFC 3629 still claims that the six byte limit per codepoint = does not exist, in section 10: Another security issue occurs when encoding to UTF-8: the ISO/IEC 10646 description of UTF-8 allows encoding character numbers up to U+7FFFFFFF, yielding sequences of up to 6 bytes. There is therefore a risk of buffer overflow if the range of character numbers is not explicitly limited to U+10FFFF or if buffer sizing doesn't take into account the possibility of 5- and 6-byte sequences. --=20 You are receiving this mail because: You are on the CC list for the bug.=