dbghelp: Fix erroneous access to dwarf symbol cache.
(Spotted by Dan Kegel with valgrind).
This commit is contained in:
parent
9e8c0e54c6
commit
4823663957
|
@ -980,7 +980,7 @@ static struct symt* dwarf2_parse_base_type(dwarf2_parse_context_t* ctx,
|
|||
break;
|
||||
default: break;
|
||||
}
|
||||
if (!ctx->symt_cache[cache_idx])
|
||||
if (cache_idx != -1 && !ctx->symt_cache[cache_idx])
|
||||
ctx->symt_cache[cache_idx] = di->symt;
|
||||
|
||||
if (di->abbrev->have_child) FIXME("Unsupported children\n");
|
||||
|
|
Loading…
Reference in New Issue