mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
elf: Check objname before calling fatal_error
_dl_signal_error may be called with objname == NULL. _dl_exception_create checks objname == NULL. But fatal_error doesn't. Check objname before calling fatal_error. This fixes BZ #31596. Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
This commit is contained in:
parent
727aacfd66
commit
1cce91d8ae
1 changed files with 5 additions and 1 deletions
|
@ -126,7 +126,11 @@ _dl_signal_error (int errcode, const char *objname, const char *occasion,
|
|||
__longjmp (lcatch->env[0].__jmpbuf, 1);
|
||||
}
|
||||
else
|
||||
fatal_error (errcode, objname, occasion, errstring);
|
||||
{
|
||||
if (objname == NULL)
|
||||
objname = "";
|
||||
fatal_error (errcode, objname, occasion, errstring);
|
||||
}
|
||||
}
|
||||
rtld_hidden_def (_dl_signal_error)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue