From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC7F53858D32; Sat, 18 Feb 2023 23:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC7F53858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676761789; bh=pXBatn/NgHoRnBzjObvuTI8cf1DSrhSGKIAsHhZ14Q4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q58Ooy/FtzzEqCrOsiabrJHZMpm6aI3+nTlv9zJVvrAcLR9yp5cx67+lirO6pDluf wb73ygcq89wvTBpGVGDbHbKaNpjoiTNYwH7FP8HGmCiwotqF9lLN8sQC7l8EUNcUlV FypO6fIWq2N/Y8eN/0u0nTw1JpmTd0Q1V+8TKrD4= From: "bruno at clisp dot org" To: glibc-bugs@sourceware.org Subject: [Bug locale/19418] iconv should stop reading from 'inbuf' when 'outbytesleft' is zero Date: Sat, 18 Feb 2023 23:09:49 +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.19 X-Bugzilla-Keywords: std-posix X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D19418 Bruno Haible changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno at clisp dot org --- Comment #3 from Bruno Haible --- (In reply to Andreas Schwab from comment #2) > It is impossible in general to know how much space is needed in *outbuf > before reading the next bytes from *inbuf. Right. In particular some bytes from the input may be dropped from the outp= ut. See: $ printf 'x\U000E0004' | iconv -f UTF-8 -t UCS-2BE | od -t x1 0000000 00 78 0000002 It produces the same output as $ printf 'x' | iconv -f UTF-8 -t UCS-2BE | od -t x1 0000000 00 78 0000002 --=20 You are receiving this mail because: You are on the CC list for the bug.=