[binutils-gdb] asan: coff-alpha use of uninitialised value
Alan Modra
amodra@sourceware.org
Mon Jan 19 06:03:58 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4ce3cf334d6747af1ca98a46729590c4843d0bf5
commit 4ce3cf334d6747af1ca98a46729590c4843d0bf5
Author: Alan Modra <amodra@gmail.com>
Date: Mon Jan 19 14:45:26 2026 +1030
asan: coff-alpha use of uninitialised value
I think this is a false positive as the "use" is reported at a
_bfd_link_reloc_status_error call, and the value passed is not used
except when bfd_reloc_dangerous. Avoid the warning anyway.
* coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
Avoid false positive warning.
Diff:
---
bfd/coff-alpha.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c
index b57ca2b32f6..9e6325636ce 100644
--- a/bfd/coff-alpha.c
+++ b/bfd/coff-alpha.c
@@ -861,7 +861,7 @@ alpha_ecoff_get_relocated_section_contents (bfd *abfd,
{
arelent *rel;
bfd_reloc_status_type r;
- char *err;
+ char *err = NULL;
unsigned int r_type;
rel = *relp;
More information about the Binutils-cvs
mailing list