From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B06A93858C2D; Fri, 25 Mar 2022 13:01:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B06A93858C2D 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: Fri, 25 Mar 2022 13:01:38 +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: NEW 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_status cc everconfirmed cf_reconfirmed_on 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: Fri, 25 Mar 2022 13:01:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29000 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |mark at klomp dot org Ever confirmed|0 |1 Last reconfirmed| |2022-03-25 --- Comment #2 from Mark Wielaard --- That is interesting, it seems to occur because the section is decompressed twice (and fails). Apparently elf_getdata leaves some uninitialized data ar= ound the first time, which gets picked up (and checked) the second time. This can only happen when using elf_compress_gnu because we cannot tell whe= ther or not the data is already (de)compressed (it is a convention based on the section name, instead of using a proper section flag). It can also be triggered on the second example with valgrind eu-readelf -w --=20 You are receiving this mail because: You are on the CC list for the bug.=