12 lines
334 B
Diff
12 lines
334 B
Diff
--- binutils.orig/bfd/elf.c 2018-05-31 10:14:28.057641463 +0100
|
|
+++ binutils-2.29/bfd/elf.c 2018-05-31 11:56:03.883865081 +0100
|
|
@@ -10977,7 +10977,7 @@ elf_read_notes (bfd *abfd, file_ptr offs
|
|
{
|
|
char *buf;
|
|
|
|
- if (size <= 0)
|
|
+ if (size == 0 || (size + 1) == 0)
|
|
return TRUE;
|
|
|
|
if (bfd_seek (abfd, offset, SEEK_SET) != 0)
|