[PATCH] fixed 1 WCHAR overflow
Marcus Meissner
meissner at suse.de
Thu Feb 8 10:15:50 CST 2007
Hi,
Coverity spotted this ... The loop
will make i go up to 1025, which we use
as array index.
So the arrays should be at least 1026 entries
large.
Ciao, Marcus
---
dlls/ntdll/tests/rtlstr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/tests/rtlstr.c b/dlls/ntdll/tests/rtlstr.c
index 5c70eda..20bba44 100644
--- a/dlls/ntdll/tests/rtlstr.c
+++ b/dlls/ntdll/tests/rtlstr.c
@@ -630,9 +630,9 @@ static void test_RtlDowncaseUnicodeStrin
int i;
WCHAR ch;
WCHAR lower_ch;
- WCHAR source_buf[1025];
- WCHAR result_buf[1025];
- WCHAR lower_buf[1025];
+ WCHAR source_buf[1026];
+ WCHAR result_buf[1026];
+ WCHAR lower_buf[1026];
UNICODE_STRING source_str;
UNICODE_STRING result_str;
UNICODE_STRING lower_str;
--
1.4.3.4
More information about the wine-patches
mailing list