[Bug tools/33004] Stack Buffer Underflow in eu-unstrip's sections_match Function

2025-06-02 Thread xdcao.cs at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33004 --- Comment #3 from Xudong Cao --- (In reply to Mark Wielaard from comment #2) > Checked in the early exit patch so we don't produce an obscure error message > later. But there is no real bug here. Hi Mark, Thanks for the quick fix! I agree t

[Bug tools/33004] Stack Buffer Underflow in eu-unstrip's sections_match Function

2025-06-02 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=33004 --- Comment #4 from Mark Wielaard --- (In reply to Xudong Cao from comment #3) > Thanks for the quick fix! > I agree the files are malformed, but any out-of-bounds access caught by ASan > is still considered a memory-safety defect from the sec

[Bug tools/33004] Stack Buffer Underflow in eu-unstrip's sections_match Function

2025-06-02 Thread xdcao.cs at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33004 --- Comment #5 from Xudong Cao --- ASan rightly flags the cross-object pointer subtraction in sections_match()—disallowed under C11 §6.5.6—because its red-zone poisoning detects the out-of-object access even though the same UB silently passes

Re: [PATCH v3] libdwfl: resolve all paths relative to sysroot

2025-06-02 Thread Aaron Merey
On Mon, Jun 2, 2025 at 8:47 AM Michal Sekletar wrote: > > Whenever possible, resolve all symlinks as if the sysroot path were a > chroot environment. This prevents potential interactions with files from > the host filesystem. > > Signed-off-by: Michal Sekletar > --- > configure.ac

Re: [PATCH] libdw: Make __libdw_fde_by_offset static in libdw/fde.c

2025-06-02 Thread Aaron Merey
Hi Mark, On Sat, May 31, 2025 at 6:17 PM Mark Wielaard wrote: > > __libdw_fde_by_offset is marked as an extern internal function in > libdw/cfi.h (a not public header file). But it is (now) only used in > libdw/fde.c, called from __libdw_find_fde. It was originally used for > dwarf_cfi_validate_f

☠ Buildbot (Sourceware): elfutils - failed test (failure) (main)

2025-06-02 Thread builder
A new failure has been detected on builder elfutils-debian-armhf while building elfutils. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/6/builds/422 Build state: failed test (failure) Revision: ec21fbb47e48d954835fe6ced9eed555a3e73e9f Worker: debian-armhf

Re: ☠ Buildbot (Sourceware): elfutils - failed test (failure) (main)

2025-06-02 Thread Aaron Merey
On Mon, Jun 2, 2025 at 5:29 PM wrote: > > A new failure has been detected on builder elfutils-debian-amd64 while > building elfutils. > > Full details are available at: > https://builder.sourceware.org/buildbot/#/builders/52/builds/518 > > Build state: failed test (failure) > Revision: 06f052

☠ Buildbot (Sourceware): elfutils - failed test (failure) (main)

2025-06-02 Thread builder
A new failure has been detected on builder elfutils-debian-amd64 while building elfutils. Full details are available at: https://builder.sourceware.org/buildbot/#/builders/52/builds/518 Build state: failed test (failure) Revision: 06f0520f9a78b07c11c343181d552791dd630346 Worker: bbo1-1 Build

[Bug tools/33006] Stack Buffer Overflow in eu-objdump's riscv_disasm Function

2025-06-02 Thread amerey at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33006 Aaron Merey changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug tools/33005] Dynamic Stack Buffer Overflow in eu-unstrip's new_shstrtab Function

2025-06-02 Thread amerey at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33005 Aaron Merey changed: What|Removed |Added Resolution|--- |NOTABUG Status|UNCONFIRMED

[PATCH] doc: Update elf_begin.3

2025-06-02 Thread Aaron Merey
Signed-off-by: Aaron Merey --- doc/elf_begin.3 | 104 1 file changed, 79 insertions(+), 25 deletions(-) diff --git a/doc/elf_begin.3 b/doc/elf_begin.3 index 6a1d0c27..cddd181f 100644 --- a/doc/elf_begin.3 +++ b/doc/elf_begin.3 @@ -1,37 +1,91 @@ -.

[PATCH v3] libdwfl: resolve all paths relative to sysroot

2025-06-02 Thread Michal Sekletar
Whenever possible, resolve all symlinks as if the sysroot path were a chroot environment. This prevents potential interactions with files from the host filesystem. Signed-off-by: Michal Sekletar --- configure.ac | 26 libdwfl/dwfl_segment_report_module.c

Re: [PATCH v2] libdwfl: resolve all paths relative to sysroot

2025-06-02 Thread Michal Sekletar
On Thu, May 29, 2025 at 1:49 AM Aaron Merey wrote: > That's right, we can move the bash binary up one directory level, for > instance, then place a symlink to it in sysroot/usr/bin. Thanks for getting back to me. I've sent v3 (with this addressed) to the list now. Cheers, Michal