]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: speed limiting fix for 32bit systems
authorStefan Eissing <stefan@eissing.org>
Fri, 26 Jul 2024 08:38:45 +0000 (10:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 Jul 2024 22:00:43 +0000 (00:00 +0200)
commitfc273027f16df2dd1eb66ffc7df417f605199e35
treea2810769b63ae97a20bbf092babcdf1ff8712661
parent11e248b782d9a7919f0b138a81ea4c4b693dc91e
transfer: speed limiting fix for 32bit systems

When checking if a speed limit on receives applies, compare the receive
sizes using the large int type to prevent an overflow on systems where
size_t is 32bit.

Fixes #14272
Reported-by: Mamoru Tasaka
Closes #14277
lib/transfer.c