[PATCH] lib: use wrapper for curl_mime_data fseek callback
authorNatanael Copa <ncopa@alpinelinux.org>
Fri, 22 Sep 2023 13:58:49 +0000 (13:58 +0000)
committerSamuel Henrique <samueloph@debian.org>
Thu, 5 Oct 2023 21:26:40 +0000 (22:26 +0100)
commit2bf4b83ef25748096c92728696d13a5486d68db0
tree92181b0cf7a82f4fa38fe378d92b8ec37b1ea4d9
parente0bc6c993b8d4e7b74cdc0ae5541515fa39cac22
[PATCH] lib: use wrapper for curl_mime_data fseek callback

fseek uses long offset which does not match with curl_off_t. This leads
to undefined behavior when calling the callback and caused failure on
arm 32 bit.

Use a wrapper to solve this and use fseeko which uses off_t instead of
long.

Thanks to the nice people at Libera IRC #musl for helping finding this
out.

Fixes #11882
Fixes #11900
Closes #11918

Gbp-Pq: Name lib_use_wrapper_for_curl_mime_data_fseek_callback.patch
CMakeLists.txt
configure.ac
lib/formdata.c