[binutils-gdb] readelf.c 'ext' may be used uninitialized
Alan Modra
amodra@sourceware.org
Tue Sep 19 22:54:46 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=765a0c0a86c7bd32d7ad7af06d22dda41f6a9172
commit 765a0c0a86c7bd32d7ad7af06d22dda41f6a9172
Author: Alan Modra <amodra@gmail.com>
Date: Tue Sep 19 09:50:57 2023 +0930
readelf.c 'ext' may be used uninitialized
* readelf.c (display_lto_symtab): Init ext.
Diff:
---
binutils/readelf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 5c69efcbcd7..e9935c010cf 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -13853,7 +13853,7 @@ display_lto_symtab (Filedata * filedata,
return false;
/* Look for extended data for the symbol table. */
- Elf_Internal_Shdr * ext;
+ Elf_Internal_Shdr * ext = NULL;
void * ext_data_orig = NULL;
char * ext_data = NULL;
char * ext_data_end = NULL;
More information about the Binutils-cvs
mailing list