[PATCH 0/1] MR5086: winedump: Don't crash on non-effective runtime function entries.
MSVC generates zeroed out entries when EditAndContinue (aka HotPatch) is enabled. Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5086
From: Eric Pouech <epouech(a)codeweavers.com> MSVC generates zeroed out entries when EditAndContinue (aka HotPatch) is enabled. Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> --- tools/winedump/pe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index f405acb2710..7ca8f86b256 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -863,6 +863,11 @@ static void dump_x86_64_unwind_info( const struct runtime_function_x86_64 *funct } info = RVA( function->UnwindData, sizeof(*info) ); + if (!info) + { + printf( " no unwind info (%x)\n", function->UnwindData ); + return; + } printf( " unwind info at %08x\n", function->UnwindData ); if (info->version > 2) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5086
participants (2)
-
Eric Pouech -
eric pouech (@epo)