Fix potential illegal memory access when parsing a corrupt PEF format file.
authorNick Clifton <nickc@redhat.com>
Fri, 3 Jan 2020 16:17:53 +0000 (16:17 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 3 Jan 2020 16:17:53 +0000 (16:17 +0000)
commitf2a3559d54602cecfec6d90f792be4a70ad918ab
tree6b09fb76e0f1b3b0e22c8020851cd3010bbbd4d4
parent7a0fb7be96e0ce79e1ae429bc1ba913e5244d537
Fix potential illegal memory access when parsing a corrupt PEF format file.

PR 25307
(bfd_pef_parse_function_stubs): Correct the test that ensures that
there is enough data remaining in the code buffer before
attempting to read a function stub.
bfd/ChangeLog
bfd/pef.c