From: Christos Zoulas Date: Tue, 11 Jun 2019 13:36:47 +0000 (+0100) Subject: Fix an unitinitalised local variable in decode_arm_unwind(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c93dbb25ac4dba2e959bfd30684a36773298c853;p=binutils-gdb.git 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. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 5565bb5708c..cf11c8d3c3c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2019-06-11 Christos Zoulas + + PR 24661 + * readelf.c (decode_arm_unwind): Ensure that the local variable + 'addr' is always initialised. + 2019-06-10 Christos Zoulas PR 24651 diff --git a/binutils/readelf.c b/binutils/readelf.c index febfd1a0820..6246de65fa8 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) {