Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 621130 | Differences between
and this patch

Collapse All | Expand All

(-)a/binutils/ChangeLog (+6 lines)
Lines 1-3 Link Here
1
2017-02-17  Nick Clifton  <nickc@redhat.com>
2
3
	PR binutils/21156
4
	* readelf.c (find_section_in_set): Test for invalid section
5
	indicies.
6
1
2017-02-13  Nick Clifton  <nickc@redhat.com>
7
2017-02-13  Nick Clifton  <nickc@redhat.com>
2
8
3
	PR binutils/21139
9
	PR binutils/21139
(-)a/binutils/readelf.c (-3 / +8 lines)
Lines 675-682 find_section_in_set (const char * name, unsigned int * set) Link Here
675
  if (set != NULL)
675
  if (set != NULL)
676
    {
676
    {
677
      while ((i = *set++) > 0)
677
      while ((i = *set++) > 0)
678
	if (streq (SECTION_NAME (section_headers + i), name))
678
	{
679
	  return section_headers + i;
679
	  /* See PR 21156 for a reproducer.  */
680
	  if (i >= elf_header.e_shnum)
681
	    continue; /* FIXME: Should we issue an error message ?  */
682
683
	  if (streq (SECTION_NAME (section_headers + i), name))
684
	    return section_headers + i;
685
	}
680
    }
686
    }
681
687
682
  return find_section (name);
688
  return find_section (name);
683
- 

Return to bug 621130