From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A8793857707; Wed, 16 Aug 2023 19:08:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A8793857707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692212898; bh=ihwVoHRPHwlgRDfbiCYJcxE6j1mr8nJyNw2sS6P3s38=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jzLz/1Crn2aVf8vjL8k/Qf9rDrxrw398B2fVU1tqpiAn8vp2/CaMSXn4xxQQbJn7E i0eTaNdrOnIkg5aXXkeXOlcp82/HF7eW7Ub4XzRNmYSp1YUDcScEQ0NxsOf6n2/e3e V8RUHuyzf9aH3MuucLkJfjUf9gzja/GrpUbRXzYY= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/30639] AddressSanitizer: dynamic-stack-buffer-overflow /home/root/sp/Dataset/Binutils/binutils_aflpp/gdb/ada-lang.c:1388:16 in ada_decode[abi:cxx11](char const*, bool, bool) Date: Wed, 16 Aug 2023 19:08:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: ada X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30639 --- Comment #10 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D033bc52bb619= 0393c8eed80925fa78cc35b40c6d commit 033bc52bb6190393c8eed80925fa78cc35b40c6d Author: Tom Tromey Date: Wed Aug 16 11:29:19 2023 -0600 Avoid buffer overflow in ada_decode A bug report pointed out a buffer overflow in ada_decode, which Keith helpfully analyzed. ada_decode had a logic error when the input was all digits. While this isn't valid -- and would probably only appear in fuzzer tests -- it still should be handled properly. This patch adds a missing bounds check. Tested with the self-tests in an asan build. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30639 Reviewed-by: Keith Seitz --=20 You are receiving this mail because: You are on the CC list for the bug.=