diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 11:07:59 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-24 11:07:59 +0200 |
commit | 863095f2bcf25d2b0243ad5c67735c04deff4241 (patch) | |
tree | 79a510285513d9eb5fa0ad376b31da5bbe86c6f4 /tests/libtest/lib1910.c | |
parent | 98c94596f5928840177b6bd3c7b0f0dd03a431af (diff) | |
download | curl-bagder/timeout-overflow.tar.gz |
Curl_pgrsTime - return new time to avoid timeout integer overflowbagder/timeout-overflow
Setting a timeout to INT_MAX could cause an immediate error to get
returned as timeout because of an overflow when different values of
'now' were used.
This is primarily fixed by having Curl_pgrsTime() return the "now" when
TIMER_STARTSINGLE is set so that the parent function will continue using
that time.
Reported-by: IonuČ›-Francisc Oancea
Fixes #5583
Diffstat (limited to 'tests/libtest/lib1910.c')
0 files changed, 0 insertions, 0 deletions