Fix the 'nm' -> segfault bug (on the vendor branch). This has been fixed
the same way in the cygnus base source. The problem was that bfd was writing to memory obtained from malloc(0). The next import will update this if necessary. I'm not sure of the origins of this patch. Discussed with: obrien
This commit is contained in:
parent
adc940bfc7
commit
855ee8c509
@ -715,6 +715,8 @@ _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep)
|
||||
storage = bfd_get_symtab_upper_bound (abfd);
|
||||
if (storage < 0)
|
||||
goto error_return;
|
||||
if (storage == 0)
|
||||
return 0;
|
||||
|
||||
syms = (asymbol **) bfd_malloc ((size_t) storage);
|
||||
if (syms == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user