From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D9D043858415; Wed, 9 Feb 2022 14:05:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9D043858415 From: "vvinayag at arm dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/26779] benign use after realloc at localealias.c:329 Date: Wed, 09 Feb 2022 14:05:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vvinayag at arm dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.35 X-Bugzilla-Flags: 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: Wed, 09 Feb 2022 14:05:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26779 vvinayag at arm dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vvinayag at arm dot com --- Comment #8 from vvinayag at arm dot com --- (In reply to Martin Sebor from comment #7) > Fixed by the changes below: >=20 > https://sourceware.org/pipermail/glibc-cvs/2022q1/076319.html > https://sourceware.org/pipermail/glibc-cvs/2022q1/076320.html > https://sourceware.org/pipermail/glibc-cvs/2022q1/076321.html > https://sourceware.org/pipermail/glibc-cvs/2022q1/076322.html > https://sourceware.org/pipermail/glibc-cvs/2022q1/076324.html Hi, I am still seeing this error when building on aarch64-none-linux-gnu with bootstrapping glibc.=20 Build =3D Host =3D Target =3D aarch64-none-linux-gnu or Build =3D Host =3D Target =3D arm-none-linux-gnueabihf localealias.c: In function 'read_alias_file': localealias.c:335:56: error: pointer may be used after 'realloc' [-Werror=3Duse-after-free] 335 | map[i].alias +=3D new_pool - string_s= pace; | ~~~~~~~~~^~~~~~~~~~~~= ~~ localealias.c:325:49: note: call to 'realloc' here 325 | char *new_pool =3D (char *) realloc (string_s= pace, new_size); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ localealias.c: In function 'read_alias_file': localealias.c:335:56: error: pointer may be used after 'realloc' [-Werror=3Duse-after-free] 335 | map[i].alias +=3D new_pool - string_s= pace; | ~~~~~~~~~^~~~~~~~~~~~= ~~ localealias.c:325:49: note: call to 'realloc' here 325 | char *new_pool =3D (char *) realloc (string_s= pace, new_size); |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors --=20 You are receiving this mail because: You are on the CC list for the bug.=