ntdll: Fix read buffer overflow in find_file_in_dir().
Signed-off-by: Joachim Priesner <joachim.priesner@web.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
36dcb69651
commit
e533a26dcf
|
@ -2550,6 +2550,8 @@ static NTSTATUS find_file_in_dir( char *unix_name, int pos, const WCHAR *name, i
|
||||||
goto not_found;
|
goto not_found;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* if that did not work, restore previous state of unix_name */
|
||||||
|
unix_name[pos - 1] = 0;
|
||||||
}
|
}
|
||||||
close( fd );
|
close( fd );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue