Author: mjansen
Date: Sat Mar 4 20:29:46 2017
New Revision: 74062
URL:
http://svn.reactos.org/svn/reactos?rev=74062&view=rev
Log:
[APPHELP] Fix a possible read past the buffer in SdbpIsPathOnRemovableMedia.
Modified:
trunk/reactos/dll/appcompat/apphelp/layer.c
Modified: trunk/reactos/dll/appcompat/apphelp/layer.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/appcompat/apphelp/laye…
==============================================================================
--- trunk/reactos/dll/appcompat/apphelp/layer.c [iso-8859-1] (original)
+++ trunk/reactos/dll/appcompat/apphelp/layer.c [iso-8859-1] Sat Mar 4 20:29:46 2017
@@ -109,7 +109,7 @@
{
WCHAR tmp[] = { 'A',':','\\',0 };
ULONG type;
- if (!Path)
+ if (!Path || Path[0] == UNICODE_NULL)
{
SHIM_ERR("Invalid argument\n");
return FALSE;