From f46d717818d11cd80127ca64646db57311af72cc Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 5 Apr 2008 09:34:07 +0200 Subject: [PATCH] dbghelp: Be stricter when looping in symbol tables. --- dlls/dbghelp/msc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c index 25589fc071..a2454d0c4c 100644 --- a/dlls/dbghelp/msc.c +++ b/dlls/dbghelp/msc.c @@ -1322,6 +1322,7 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root const union codeview_symbol* sym = (const union codeview_symbol*)(root + i); length = sym->generic.len + 2; if (i + length > size) break; + if (!sym->generic.id || length < 4) break; if (length & 3) FIXME("unpadded len %u\n", length); switch (sym->generic.id) -- 2.32.0.93.g670b81a890