projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85f31b8
)
[KERNEL32_WINETEST]
author
Thomas Faber
<thomas.faber@reactos.org>
Wed, 19 Apr 2017 14:08:51 +0000
(14:08 +0000)
committer
Thomas Faber
<thomas.faber@reactos.org>
Wed, 19 Apr 2017 14:08:51 +0000
(14:08 +0000)
- Improve the test_GetVolumePathNamesForVolumeNameW hack to avoid a stack buffer underrun.
CORE-11474
svn path=/trunk/; revision=74377
rostests/winetests/kernel32/volume.c
patch
|
blob
|
history
diff --git
a/rostests/winetests/kernel32/volume.c
b/rostests/winetests/kernel32/volume.c
index
3d1d1e3
..
1915836
100644
(file)
--- a/
rostests/winetests/kernel32/volume.c
+++ b/
rostests/winetests/kernel32/volume.c
@@
-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)