Eric Pouech : winedump: Don't crash when dumping .dbg files.
Module: wine Branch: master Commit: 944edd5068ab46e1682f9a3943976268fcc58a4d URL: https://gitlab.winehq.org/wine/wine/-/commit/944edd5068ab46e1682f9a394397626... Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Mon Nov 28 16:03:57 2022 +0100 winedump: Don't crash when dumping .dbg files. 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 +
participants (1)
-
Alexandre Julliard