From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED6F33858C50; Tue, 29 Mar 2022 22:35:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED6F33858C50 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libelf/29000] Conditional jump or move depends on uninitialised value in elf_compress_gnu Date: Tue, 29 Mar 2022 22:35:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libelf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2022 22:35:03 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29000 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at sourceware dot org |mark at klomp dot o= rg --- Comment #3 from Mark Wielaard --- > It can also be triggered on the second example with valgrind eu-readelf -w Thanks, that was very useful. I don't think it really is a bug. But it is u= se of undefined data. The issue is that if the ELF data structures need to be converted then it only makes sense to convert full datastructures. But just dropping the bad/partial data is not a great idea either. So this proposed patch just copies over the bad/partial data that couldn't be converted. That way it is at least deterministically defined. https://code.wildebeest.org/git/user/mjw/elfutils/commit/?h=3Dfuzz https://sourceware.org/pipermail/elfutils-devel/2022q1/004825.html --=20 You are receiving this mail because: You are on the CC list for the bug.=