Author: tfaber
Date: Wed Apr 19 14:08:51 2017
New Revision: 74377
URL:
http://svn.reactos.org/svn/reactos?rev=74377&view=rev
Log:
[KERNEL32_WINETEST]
- Improve the test_GetVolumePathNamesForVolumeNameW hack to avoid a stack buffer
underrun.
CORE-11474
Modified:
trunk/rostests/winetests/kernel32/volume.c
Modified: trunk/rostests/winetests/kernel32/volume.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/kernel32/volume…
==============================================================================
--- trunk/rostests/winetests/kernel32/volume.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/kernel32/volume.c [iso-8859-1] Wed Apr 19 14:08:51 2017
@@ -978,7 +978,8 @@
#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)