https://sourceware.org/bugzilla/show_bug.cgi?id=19323
--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The binutils-2_26-branch branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=aa8b89e8ae35f71a94a1eaee0da939396d2f61d4 commit aa8b89e8ae35f71a94a1eaee0da939396d2f61d4 Author: Alan Modra <amo...@gmail.com> Date: Mon Dec 7 13:41:36 2015 +1030 PR19323 memory allocation greater than 4G On 32-bit targets, memory requested for program/section headers on a fuzzed binary can wrap to 0. A bfd_alloc of zero bytes actually returns a one byte allocation rather than a NULL pointer. This then leads to buffer overflows. Making this check unconditional triggers an extremely annoying gcc-5 warning. PR 19323 * elfcode.h (elf_object_p): Check for ridiculous e_shnum and e_phnum values. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils