diff options
author | Patrick Monnerat <patrick.monnerat@dh.com> | 2015-11-05 15:20:43 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick.monnerat@dh.com> | 2015-11-05 15:20:43 +0100 |
commit | f6fbbd6dc3bcc93c681b2f7a14a73fa561b00488 (patch) | |
tree | 8e71c0266412771fa3783c6e782036ef91ec45ed /lib | |
parent | 210fc95c0fd415ed4e240e11346f63b27ce418a6 (diff) |
curl_ntlm_core: fix 2 curl_off_t constant overflows.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_ntlm_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_ntlm_core.c b/lib/curl_ntlm_core.c index 38ce80551..db13781a2 100644 --- a/lib/curl_ntlm_core.c +++ b/lib/curl_ntlm_core.c @@ -676,10 +676,10 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash, #ifdef DEBUGBUILD char *force_timestamp = getenv("CURL_FORCETIME"); if(force_timestamp) - tw = (curl_off_t)11644473600 * 10000000; + tw = CURL_OFF_T_C(11644473600) * 10000000; else #endif - tw = ((curl_off_t)time(NULL) + 11644473600) * 10000000; + tw = ((curl_off_t)time(NULL) + CURL_OFF_T_C(11644473600)) * 10000000; /* Calculate the response len */ len = NTLM_HMAC_MD5_LEN + NTLMv2_BLOB_LEN; |