mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
[RTL]
Properly check for total length in LdrpGetProcedureAddress(). It contains more than just a name. Fixes a buffer overrun. CID #716122 svn path=/trunk/; revision=62618
This commit is contained in:
parent
9d713d990a
commit
283ab16ed6
|
@ -2267,7 +2267,7 @@ LdrpGetProcedureAddress(IN PVOID BaseAddress,
|
|||
}
|
||||
|
||||
/* Check if our buffer is large enough */
|
||||
if (Name->Length > sizeof(ImportBuffer))
|
||||
if (Length > sizeof(ImportBuffer))
|
||||
{
|
||||
/* Allocate from heap, plus 2 bytes for the Hint */
|
||||
ImportName = RtlAllocateHeap(RtlGetProcessHeap(),
|
||||
|
|
Loading…
Reference in a new issue