[NTDLL_APITEST] Disable NtContinue test when runtime checks are enabled
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 19 Oct 2014 19:37:55 +0000 (19:37 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 19 Oct 2014 19:37:55 +0000 (19:37 +0000)
[USER32_APITEST] Disable WndProc test when runtime checks are enabled
[KERNEL32_WINETEST] Zero initialize a buffer. This is necessary, since we fail all calls to GetVolumePathNamesForVolumeNameW and thus never get any data into the buffer, which can later result in a buffer-overrun, when doing a lstrlenW on it.

svn path=/trunk/; revision=64831

rostests/apitests/ntdll/NtContinue.c
rostests/apitests/user32/WndProc.c
rostests/winetests/kernel32/volume.c

index 8776bca..1f619f1 100644 (file)
@@ -123,6 +123,10 @@ void check(CONTEXT * pContext)
 
 START_TEST(NtContinue)
 {
+#ifdef __RUNTIME_CHECKS__
+    skip("This test breaks MSVC runtime checks!");
+    return;
+#endif /* __RUNTIME_CHECKS__ */
     initrand();
 
     /* First time */
index 337f365..bdcff2f 100644 (file)
@@ -99,5 +99,9 @@ static void test_wndproc(void)
 
 START_TEST(WndProc)
 {
+#ifdef __RUNTIME_CHECKS__
+    skip("This test breaks MSVC runtime checks!");
+    return;
+#endif /* __RUNTIME_CHECKS__ */
    test_wndproc();
 }
index fd52a2a..191987c 100644 (file)
@@ -765,6 +765,12 @@ static void test_GetVolumePathNamesForVolumeNameW(void)
     WCHAR volume[MAX_PATH], buffer[MAX_PATH];
     DWORD len, error;
 
+#ifdef __REACTOS__
+    /* due to failing all calls to GetVolumeNameForVolumeMountPointW, this
+     * buffer never gets initialized and could cause a buffer overflow later */
+    volume[0] = 0;
+#endif /* __REACTOS__ */
+
     if (!pGetVolumePathNamesForVolumeNameW || !pGetVolumeNameForVolumeMountPointW)
     {
         win_skip("required functions not found\n");