From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0053E3858D28; Sun, 23 Jul 2023 16:14:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0053E3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690128891; bh=hB4HaXtVq5l/o00AzDVNpNImBqHizwZTtF4JhSgDtnY=; h=From:To:Subject:Date:From; b=AaPgBADNz8SiQKKZ8VZYXfZ31XM2bDdMXY5dQMKgGBZDCzgCFIvX3DWCJvMVmh74B pk4v1hBSsvVov2tfyAcD5Z4kvk9raZpV/aOL2hIwTuClP50Y3ZLiCSOh3vJk/RStt2 c0NRhGa+khiPTvM8rA3kl+jWspaXMVQ8WYMWmxxg= From: "kashiwagi at unimplemented dot net" To: glibc-bugs@sourceware.org Subject: [Bug locale/30666] New: Malfunction caused by duplicate conditional statements in "locale/programs/charmap.c" Date: Sun, 23 Jul 2023 16:14:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: locale X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: kashiwagi at unimplemented dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D30666 Bug ID: 30666 Summary: Malfunction caused by duplicate conditional statements in "locale/programs/charmap.c" Product: glibc Version: unspecified Status: UNCONFIRMED Severity: minor Priority: P2 Component: locale Assignee: unassigned at sourceware dot org Reporter: kashiwagi at unimplemented dot net Target Milestone: --- Created attachment 14998 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14998&action=3Ded= it bugfix There is a bug in the "locale/programs/charmap.c" file. The problem lies wi= thin the following code: if ((nowtok =3D=3D tok_mb_cur_max && result->mb_cur_max !=3D 0) || (nowtok =3D=3D tok_mb_cur_max && result->mb_cur_max !=3D 0)) Suggested Fix: The conditional statement should be corrected as follows: if ((nowtok =3D=3D tok_mb_cur_max && result->mb_cur_max !=3D 0) || (nowtok =3D=3D tok_mb_cur_min && result->mb_cur_min !=3D 0)) It seems that there was a duplication of the same condition, and one of the conditions should be comparing with tok_mb_cur_min instead of tok_mb_cur_ma= x. This change should address the issue and ensure proper functionality. --=20 You are receiving this mail because: You are on the CC list for the bug.=