[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>
Sun, 1 Oct 2023 14:01:42 +0000 (15:01 +0100)
commitd2d44067582a068e0238d5f8bd5341967707b1b8
tree7946d5da1641967808edc1b84f295cbce3b7f5ff
parent2416e912c5fa34d94f8d120766f54434ec375f2f
[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