Prevent illegal memory access when checking relocs in a corrupt ELF binary.

PR 32641
4 files changed