-
- size = obj_raw_syment_count (abfd) * symesz;
- if (size == 0)
- return TRUE;
- /* Check for integer overflow and for unreasonable symbol counts. */
- if (size < obj_raw_syment_count (abfd)
- || (bfd_get_file_size (abfd) > 0
- && size > bfd_get_file_size (abfd)))
-
- {
- _bfd_error_handler (_("%pB: corrupt symbol count: %#" PRIx64 ""),
- abfd, (uint64_t) obj_raw_syment_count (abfd));
- return FALSE;
- }
-
- syms = bfd_malloc (size);
- if (syms == NULL)