[PATCH] dbghelp: Avoid an infinite loop.

Zebediah Figura z.figura12 at gmail.com
Wed Jan 31 22:03:12 CST 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/dbghelp/cpu_x86_64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/dbghelp/cpu_x86_64.c b/dlls/dbghelp/cpu_x86_64.c
index 99b5c17..67b710c 100644
--- a/dlls/dbghelp/cpu_x86_64.c
+++ b/dlls/dbghelp/cpu_x86_64.c
@@ -712,6 +712,7 @@ static void*    x86_64_find_runtime_function(struct module* module, DWORD64 addr
             while (rtf->UnwindData & 1)  /* follow chained entry */
             {
                 FIXME("RunTime_Function outside IMAGE_DIRECTORY_ENTRY_EXCEPTION unimplemented yet!\n");
+                return NULL;
                 /* we need to read into the other process */
                 /* rtf = (RUNTIME_FUNCTION*)(module->module.BaseOfImage + (rtf->UnwindData & ~1)); */
             }
-- 
2.7.4




More information about the wine-devel mailing list