8341820: Check return value of hcreate_r
Reviewed-by: cjplummer, lucy
This commit is contained in:
parent
ae41daf9a7
commit
7c0dbf8e9c
@ -389,9 +389,9 @@ static struct symtab* build_symtab_internal(int fd, const char *filename, bool t
|
||||
goto bad;
|
||||
}
|
||||
|
||||
// int rslt =
|
||||
hcreate_r(htab_sz, symtab->hash_table);
|
||||
// guarantee(rslt, "unexpected failure: hcreate_r");
|
||||
if (hcreate_r(htab_sz, symtab->hash_table) == 0) {
|
||||
goto bad;
|
||||
}
|
||||
|
||||
// shdr->sh_link points to the section that contains the actual strings
|
||||
// for symbol names. the st_name field in ELF_SYM is just the
|
||||
|
Loading…
Reference in New Issue
Block a user