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.
This commit is contained in:
Christos Zoulas 2019-06-11 14:36:47 +01:00 committed by Nick Clifton
parent 89549d7f4d
commit c93dbb25ac
2 changed files with 11 additions and 0 deletions

View 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

View File

@ -9029,6 +9029,11 @@ decode_arm_unwind (Filedata * filedata,
remaining = 4;
}
else
{
addr.section = SHN_UNDEF;
addr.offset = 0;
}
if ((word & 0x80000000) == 0)
{