Prevent a buffer overrun whilst displaying corrupt ARM tags.

PR binutils/17531
	* readelf.c (display_arm_attribute): Avoid reading off the end of
	the buffer when processing a Tag_nodefaults.
This commit is contained in:
Nick Clifton 2014-11-11 16:15:47 +00:00
parent 201159ecec
commit 541a3cbda9
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2014-11-11 Nick Clifton <nickc@redhat.com>
PR binutils/17531
* readelf.c (display_arm_attribute): Avoid reading off the end of
the buffer when processing a Tag_nodefaults.
2014-11-10 Nick Clifton <nickc@redhat.com>
PR binutils/17531

View file

@ -12054,7 +12054,9 @@ display_arm_attribute (unsigned char * p,
break;
case 64: /* Tag_nodefaults. */
p++;
/* PR 17531: file: 001-505008-0.01. */
if (p < end)
p++;
printf (_("True\n"));
break;