View | Details | Raw Unified
Collapse All | Expand All

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