runtime_loader: Do not assume executable has dynamic segment
This prevents a crash when loading a statically linked executable. Fixes #12287. Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
078b88b12d
commit
d5447eb9c0
@ -58,7 +58,7 @@ struct SymbolLookupInfo {
|
||||
struct SymbolLookupCache {
|
||||
SymbolLookupCache(image_t* image)
|
||||
:
|
||||
fTableSize(image->symhash[1]),
|
||||
fTableSize(image->symhash != NULL ? image->symhash[1] : 0),
|
||||
fValues(NULL),
|
||||
fDSOs(NULL),
|
||||
fValuesResolved(NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user