[PATCH 0/1] MR1573: winedump: Don't crash when dumping .dbg files.
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/1573
From: Eric Pouech <eric.pouech(a)gmail.com> Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> --- tools/winedump/pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index d901290be35..7ec378a19b8 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -468,7 +468,7 @@ static void dump_sections(const void *base, const void* addr, unsigned num_sect) unsigned i; const char* strtable; - if (PE_nt_headers->FileHeader.PointerToSymbolTable && PE_nt_headers->FileHeader.NumberOfSymbols) + if (PE_nt_headers && PE_nt_headers->FileHeader.PointerToSymbolTable && PE_nt_headers->FileHeader.NumberOfSymbols) { strtable = (const char*)base + PE_nt_headers->FileHeader.PointerToSymbolTable + -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1573
participants (2)
-
Eric Pouech -
eric pouech (@epo)