mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[KERNEL32_WINETEST]
- Improve the test_GetVolumePathNamesForVolumeNameW hack to avoid a stack buffer underrun. CORE-11474 svn path=/trunk/; revision=74377
This commit is contained in:
parent
85f31b899e
commit
a909a0807a
1 changed files with 2 additions and 1 deletions
|
@ -978,7 +978,8 @@ static void test_GetVolumePathNamesForVolumeNameW(void)
|
|||
#ifdef __REACTOS__
|
||||
/* due to failing all calls to GetVolumeNameForVolumeMountPointW, this
|
||||
* buffer never gets initialized and could cause a buffer overflow later */
|
||||
volume[0] = 0;
|
||||
volume[0] = '$';
|
||||
volume[1] = 0;
|
||||
#endif /* __REACTOS__ */
|
||||
|
||||
if (!pGetVolumePathNamesForVolumeNameW || !pGetVolumeNameForVolumeMountPointW)
|
||||
|
|
Loading…
Reference in a new issue