[PATCH v1 0/7] Various fixes for memory leaks introduced by Object Attributes v2 patch series
Matthieu Longo
matthieu.longo@arm.com
Tue Feb 3 10:00:41 GMT 2026
This patch series contains fixes for memory-related issues.
The first five patches resolve new memory leaks introduced by the Object Attributes v2 patch series, in both generic and AArch64-specific code.
The sixth patch resolves a buffer overflow causing aarch64-gen to abort with ASAN runtime and ASAN_OPTIONS="abort_on_error=1".
And the last patch resolves age-old memory leaks in AArch64 GAS backend spamming LeakSanitizer reports.
Adding also Nick Clifton in CC as he might want to merge those patches on branch 2.46.
Regards,
Matthieu
Matthieu Longo (7):
libiberty: add helper to swap doubly-linked list wrappers
Object Attributes v2: clean up attributes data when freeing BFDs
bfd: fix memory leak when assigning the merge result of OAv2 string attributes
bfd: fix memory leak when default-initializing an OAv2 attribute
aarch64: clean up subsection used to initialize the frozen attributes set
aarch64: fix buffer overflow in aarch64-gen
aarch64 gas: free hash tables in md_begin() to avoid memory leaks
bfd/elf-attrs.c | 49 +++++++--
bfd/elf-bfd.h | 2 +
bfd/elf.c | 1 +
bfd/elfnn-aarch64.c | 2 +
gas/config/tc-aarch64.c | 104 +++++++++++++++---
gas/config/tc-aarch64.h | 3 +
include/doubly-linked-list.h | 37 ++++++-
libiberty/testsuite/test-doubly-linked-list.c | 22 ++++
opcodes/aarch64-gen.c | 2 +-
9 files changed, 193 insertions(+), 29 deletions(-)
--
2.52.0
More information about the Binutils
mailing list