dbghelp: Fix invalid pointer dereference.
This commit is contained in:
parent
e05ccfe2bb
commit
d2fa765087
@ -456,7 +456,7 @@ PVOID WINAPI ImageDirectoryEntryToDataEx( PVOID base, BOOLEAN image, USHORT dir,
|
|||||||
*size = nt->OptionalHeader.DataDirectory[dir].Size;
|
*size = nt->OptionalHeader.DataDirectory[dir].Size;
|
||||||
if (image || addr < nt->OptionalHeader.SizeOfHeaders)
|
if (image || addr < nt->OptionalHeader.SizeOfHeaders)
|
||||||
{
|
{
|
||||||
if (*section) *section = NULL;
|
if (section) *section = NULL;
|
||||||
return (char *)base + addr;
|
return (char *)base + addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user