View | Details | Raw Unified | Return to bug 21669
Collapse All | Expand All

(-)a/bfd/elf.c (-2 / +2 lines)
Lines 1291-1297 find_link (const bfd * obfd, const Elf_Internal_Shdr * iheader, const unsigned i Link Here
1291
  BFD_ASSERT (iheader != NULL);
1291
  BFD_ASSERT (iheader != NULL);
1292
1292
1293
  /* See PR 20922 for a reproducer of the NULL test.  */
1293
  /* See PR 20922 for a reproducer of the NULL test.  */
1294
  if (oheaders[hint] != NULL
1294
  if (hint < elf_numsections (obfd)
1295
      && oheaders[hint] != NULL
1295
      && section_match (oheaders[hint], iheader))
1296
      && section_match (oheaders[hint], iheader))
1296
    return hint;
1297
    return hint;
1297
1298
1298
- 

Return to bug 21669