]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: be more careful when casting to `curl_off_t`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 26 Sep 2025 10:32:51 +0000 (10:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Sep 2025 17:38:18 +0000 (10:38 -0700)
commit580cf0f2f6d38221fc4c5f17155c311915301a5c
tree5ab5643a7c4b9d67d2d4a5b8ea60934f8d747f40
parente4efcd70604f2a294e020ec2e1bc38f01892cd19
imap-send: be more careful when casting to `curl_off_t`

When casting a `size_t` to `curl_off_t`, there is a currently uncommon
chance that the value can be cut off (`curl_off_t` is expected to be a
signed 64-bit data type).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c