Author: weiden Date: Sat Jul 14 14:59:18 2007 New Revision: 27649
URL: http://svn.reactos.org/svn/reactos?rev=27649&view=rev Log: Patch by David Lenon DavidL@126.com: - Fix overflow check in RtlUpcaseUnicodeStringToCountedOemString See issue #2403 for more details.
Modified: trunk/reactos/lib/rtl/unicode.c
Modified: trunk/reactos/lib/rtl/unicode.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=27649... ============================================================================== --- trunk/reactos/lib/rtl/unicode.c (original) +++ trunk/reactos/lib/rtl/unicode.c Sat Jul 14 14:59:18 2007 @@ -1632,7 +1632,7 @@ 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; }