From acac63663a2b4d910ad7d3acbb5dc161dd94c15c Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 10 Dec 2012 12:47:40 +0100 Subject: [PATCH] msvcrt: Improved input parameter range check in _gmtime64_s. --- dlls/msvcrt/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c index 60c7120f2fe..05980a54ea6 100644 --- a/dlls/msvcrt/time.c +++ b/dlls/msvcrt/time.c @@ -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); }