1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

unit1399: fix integer overflow

Bug: #1616
Closes #1633
This commit is contained in:
Ryan Winograd 2017-07-02 18:35:36 -05:00 committed by Daniel Stenberg
parent 4fc6ebe18a
commit 3a48a13268

View File

@ -91,7 +91,7 @@ UNITTEST_START
*/ */
data.progress.t_startsingle.tv_sec = now.tv_sec - 3; data.progress.t_startsingle.tv_sec = now.tv_sec - 3;
data.progress.t_startsingle.tv_usec = now.tv_usec; data.progress.t_startsingle.tv_usec = now.tv_usec;
data.progress.t_redirect = (now.tv_sec - 2) * usec_magnitude; data.progress.t_redirect = data.progress.t_starttransfer + 1;
Curl_pgrsTime(&data, TIMER_STARTTRANSFER); Curl_pgrsTime(&data, TIMER_STARTTRANSFER);