Author: pschweitzer
Date: Sat Oct 24 08:21:09 2015
New Revision: 69662
URL:
http://svn.reactos.org/svn/reactos?rev=69662&view=rev
Log:
[DESK]
Pass a buffer big enough to hold the drive size to _wsplitpath().
This fixes a buffer overrun.
CID 1322097
Modified:
trunk/reactos/dll/cpl/desk/desk.c
Modified: trunk/reactos/dll/cpl/desk/desk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/desk.c?rev=69…
==============================================================================
--- trunk/reactos/dll/cpl/desk/desk.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/desk.c [iso-8859-1] Sat Oct 24 08:21:09 2015
@@ -219,7 +219,7 @@
IN UINT nCmdShow)
{
WCHAR pszSystemDir[MAX_PATH];
- WCHAR pszDrive[2];
+ WCHAR pszDrive[3];
WCHAR pszPath[MAX_PATH];
WCHAR pszFilename[MAX_PATH];
WCHAR pszExt[MAX_PATH];