aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2019-06-11 14:36:47 +0100
committerNick Clifton <nickc@redhat.com>2019-06-11 14:36:47 +0100
commitc93dbb25ac4dba2e959bfd30684a36773298c853 (patch)
treea82224623f5af5fcfaddb00aab3af6e1c8b6f78c /binutils/readelf.c
parent89549d7f4d27b63c4aaab4456e21dab1ee96a40a (diff)
downloadgdb-c93dbb25ac4dba2e959bfd30684a36773298c853.zip
gdb-c93dbb25ac4dba2e959bfd30684a36773298c853.tar.gz
gdb-c93dbb25ac4dba2e959bfd30684a36773298c853.tar.bz2
Fix an unitinitalised local variable in decode_arm_unwind().
PR 24661 * readelf.c (decode_arm_unwind): Ensure that the local variable 'addr' is always initialised.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index febfd1a..6246de6 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -9029,6 +9029,11 @@ decode_arm_unwind (Filedata * filedata,
remaining = 4;
}
+ else
+ {
+ addr.section = SHN_UNDEF;
+ addr.offset = 0;
+ }
if ((word & 0x80000000) == 0)
{