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

Collapse All | Expand All

(-)elfutils-0.94.orig/libelf/elf_begin.c (-1 / +2 lines)
Lines 220-226 Link Here
220
220
221
  /* Determine the number of sections.  */
221
  /* Determine the number of sections.  */
222
  scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize);
222
  scncnt = get_shnum (map_address, e_ident, fildes, offset, maxsize);
223
  if (scncnt == (size_t) -1l)
223
  if ((scncnt == (size_t) -1l) ||
224
		  (sizeof (Elf_Scn) * scncnt / sizeof (Elf_Scn) != scncnt))
224
    /* Could not determine the number of sections.  */
225
    /* Could not determine the number of sections.  */
225
    return NULL;
226
    return NULL;
226
227

Return to bug 91817