mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
Patch by David Lenon <DavidL@126.com>:
- Fix overflow check in RtlUpcaseUnicodeStringToCountedOemString See issue #2403 for more details. svn path=/trunk/; revision=27649
This commit is contained in:
parent
1309c3f3eb
commit
008fc0b1ca
|
@ -1632,7 +1632,7 @@ RtlUpcaseUnicodeStringToCountedOemString(
|
|||
OemDest->MaximumLength = Length;
|
||||
if (!OemDest->Buffer) return STATUS_NO_MEMORY;
|
||||
}
|
||||
else if (OemDest->Length >= OemDest->MaximumLength)
|
||||
else if (OemDest->Length > OemDest->MaximumLength)
|
||||
{
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue