Thomas Faller : ntdll: Fix invalid use of uninitialized memory.
Module: wine Branch: master Commit: d90f25156c09c374554cd799b0076e1bc938c002 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d90f25156c09c374554cd799b0... Author: Thomas Faller <tfaller1(a)gmx.de> Date: Tue Sep 8 16:32:12 2015 +0200 ntdll: Fix invalid use of uninitialized memory. --- dlls/ntdll/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/path.c b/dlls/ntdll/path.c index 8b7cbaa..feaac9e 100644 --- a/dlls/ntdll/path.c +++ b/dlls/ntdll/path.c @@ -869,7 +869,7 @@ BOOLEAN WINAPI RtlIsNameLegalDOS8Dot3( const UNICODE_STRING *unicode, if (oem->Length > 12) return FALSE; /* a starting . is invalid, except for . and .. */ - if (oem->Buffer[0] == '.') + if (oem->Length > 0 && oem->Buffer[0] == '.') { if (oem->Length != 1 && (oem->Length != 2 || oem->Buffer[1] != '.')) return FALSE; if (spaces) *spaces = FALSE;
participants (1)
-
Alexandre Julliard