msvcrt: Improved input parameter range check in _gmtime64_s.

This commit is contained in:
Piotr Caban 2012-12-10 12:47:40 +01:00 committed by Alexandre Julliard
parent c9a7436812
commit acac63663a
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ int CDECL MSVCRT__gmtime64_s(struct MSVCRT_tm *res, const MSVCRT___time64_t *sec
SYSTEMTIME st;
ULONGLONG time;
if (!res || !secs || *secs < 0) {
if (!res || !secs || *secs < 0 || *secs > _MAX__TIME64_T) {
if (res) {
write_invalid_msvcrt_tm(res);
}