From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 439933858407; Thu, 9 Dec 2021 19:08:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 439933858407 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libelf/28666] memmove() reads out-of-range in elf32_xlatetom Date: Thu, 09 Dec 2021 19:08:01 +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: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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: Thu, 09 Dec 2021 19:08:01 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28666 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #7 from Mark Wielaard --- Could you open a new bug report for the issue in comment #6? It is indeed a different issue, although very similar to this one. I can probably create a fix just from that backtrace, but having a reproduc= er would be great. Thanks for testing, pushed as: commit 809f2d70ec770d512cf6b1e70a67f5eb84c4508c Author: Mark Wielaard Date: Wed Dec 8 13:39:47 2021 +0100 libdwfl: Don't try to convert too many bytes in dwfl_link_map_report When trying to read (corrupt) phdrs from a core file we only want to read and convert the bytes we could read. Also make sure we don't try to allocate too big buffers. https://sourceware.org/bugzilla/show_bug.cgi?id=3D28666 Signed-off-by: Mark Wielaard --=20 You are receiving this mail because: You are on the CC list for the bug.=