Fix an unitinitalised local variable in decode_arm_unwind().
authorChristos Zoulas <christos@zoulas.com>
Tue, 11 Jun 2019 13:36:47 +0000 (14:36 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Jun 2019 13:36:47 +0000 (14:36 +0100)
PR 24661
* readelf.c (decode_arm_unwind): Ensure that the local variable
'addr' is always initialised.

binutils/ChangeLog
binutils/readelf.c

index 5565bb5708c9d00d9c2f5c3250242523d4345069..cf11c8d3c3c60ee840fd200705cc1b9e595a005c 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-11  Christos Zoulas  <christos@zoulas.com>
+
+       PR 24661
+       * readelf.c (decode_arm_unwind): Ensure that the local variable
+       'addr' is always initialised.
+
 2019-06-10  Christos Zoulas  <christos@zoulas.com>
 
        PR 24651
index febfd1a082086422f6627634d2c49c74adc31dd1..6246de65fa8dca3442093280159683d159a25f7e 100644 (file)
@@ -9029,6 +9029,11 @@ decode_arm_unwind (Filedata *                 filedata,
 
       remaining = 4;
     }
+  else
+    {
+      addr.section = SHN_UNDEF;
+      addr.offset = 0;
+    }
 
   if ((word & 0x80000000) == 0)
     {
This page took 0.035335 seconds and 4 git commands to generate.