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 <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
078b88b12d
commit
d5447eb9c0
@@ -58,7 +58,7 @@ struct SymbolLookupInfo {
|
|||||||
struct SymbolLookupCache {
|
struct SymbolLookupCache {
|
||||||
SymbolLookupCache(image_t* image)
|
SymbolLookupCache(image_t* image)
|
||||||
:
|
:
|
||||||
fTableSize(image->symhash[1]),
|
fTableSize(image->symhash != NULL ? image->symhash[1] : 0),
|
||||||
fValues(NULL),
|
fValues(NULL),
|
||||||
fDSOs(NULL),
|
fDSOs(NULL),
|
||||||
fValuesResolved(NULL)
|
fValuesResolved(NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user