mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 14:08:22 +00:00
[DBGHELP] Prevent crashing on a malformed PE file.
CORE-15030
This commit is contained in:
parent
ee4ee2fc1d
commit
25d143dd20
1 changed files with 9 additions and 0 deletions
|
@ -615,6 +615,15 @@ static BOOL pe_load_msc_debug_info(const struct process* pcs, struct module* mod
|
||||||
|
|
||||||
dbg = RtlImageRvaToVa(nth, mapping, dir->VirtualAddress, NULL);
|
dbg = RtlImageRvaToVa(nth, mapping, dir->VirtualAddress, NULL);
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
if (!dbg)
|
||||||
|
{
|
||||||
|
ERR("Debug directory not found in module %s\n",
|
||||||
|
debugstr_w(module->module.ModuleName));
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Parse debug directory */
|
/* Parse debug directory */
|
||||||
if (nth->FileHeader.Characteristics & IMAGE_FILE_DEBUG_STRIPPED)
|
if (nth->FileHeader.Characteristics & IMAGE_FILE_DEBUG_STRIPPED)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue