Fix illegal memory access parsing a corrupt MACH-O format file.
authorNick Clifton <nickc@redhat.com>
Fri, 30 Apr 2021 13:31:03 +0000 (14:31 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 30 Apr 2021 13:31:03 +0000 (14:31 +0100)
commitd1fbc3ba09fb2e79acf633df29ccbe9285624419
tree0edbf62a9288e98c418fa70d4ca51fa047aec9f5
parent9f84cb380e8403ad4f1184fd09af475c17fd8835
Fix illegal memory access parsing a corrupt MACH-O format file.

PR 27801
* mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
read 32-bit value.
bfd/ChangeLog
bfd/mach-o.c