[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/31903] Asan heap-buffer-overflow in test gas/elf/dwarf-5-irp.s
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gas/31903] Asan heap-buffer-overflow in test gas/elf/dwarf-5-irp.s in cross-assember to aarch64-elf |
Date: |
Fri, 21 Jun 2024 06:36:15 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31903
--- Comment #3 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jan Beulich <jbeulich@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4ad2348edbf43a3d1a694fd5375680cb55e6b1c1
commit 4ad2348edbf43a3d1a694fd5375680cb55e6b1c1
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Jun 21 08:32:53 2024 +0200
gas: terminate buffer SB in do_repeat()
PR gas/31903
While elsewhere having realized that "one" doesn't point to a nul-
terminated string, it somehow didn't occur to me that the pre-existing
strstr() could have been wrong, and hence I blindly added a new use of
the function. Add the (already prior to 1e3c814459d8 ["gas: extend \+
support to .rept"]) missing call to sb_terminate(), leveraging that to
simplify the other two places where the lack of nul termination was
previously worked around.
--
You are receiving this mail because:
You are on the CC list for the bug.