From 0adcb4d02a55a7e82d4ccfcd4492447f7f94d4f5 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 4 Mar 2017 20:29:46 +0000 Subject: [PATCH] [APPHELP] Fix a possible read past the buffer in SdbpIsPathOnRemovableMedia. svn path=/trunk/; revision=74062 --- reactos/dll/appcompat/apphelp/layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/appcompat/apphelp/layer.c b/reactos/dll/appcompat/apphelp/layer.c index ab15b2fce31..afe1ca3d5a0 100644 --- a/reactos/dll/appcompat/apphelp/layer.c +++ b/reactos/dll/appcompat/apphelp/layer.c @@ -109,7 +109,7 @@ BOOL SdbpIsPathOnRemovableMedia(PCWSTR Path) { WCHAR tmp[] = { 'A',':','\\',0 }; ULONG type; - if (!Path) + if (!Path || Path[0] == UNICODE_NULL) { SHIM_ERR("Invalid argument\n"); return FALSE;