mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[NTDLL_APITEST] Disable NtContinue test when runtime checks are enabled
[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
This commit is contained in:
parent
064ac54c96
commit
211e68d9b1
3 changed files with 14 additions and 0 deletions
|
@ -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 */
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue