mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
readelf: Update check for invalid word offsets in ARM unwind information.
PR binutils/21343 * readelf.c (get_unwind_section_word): Fix snafu checking for invalid word offsets in ARM unwind information.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2017-04-03 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/21343
|
||||
* readelf.c (get_unwind_section_word): Fix snafu checking for
|
||||
invalid word offsets in ARM unwind information.
|
||||
|
||||
2017-03-31 Pip Cet <pipcet@gmail.com>
|
||||
|
||||
* NEWS: Use "WebAssembly" consistently.
|
||||
|
@ -8053,9 +8053,9 @@ get_unwind_section_word (struct arm_unw_aux_info * aux,
|
||||
return FALSE;
|
||||
|
||||
/* If the offset is invalid then fail. */
|
||||
if (word_offset > (sec->sh_size - 4)
|
||||
/* PR 18879 */
|
||||
|| (sec->sh_size < 5 && word_offset >= sec->sh_size)
|
||||
if (/* PR 21343 *//* PR 18879 */
|
||||
sec->sh_size < 4
|
||||
|| word_offset > (sec->sh_size - 4)
|
||||
|| ((bfd_signed_vma) word_offset) < 0)
|
||||
return FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user