]> git.ipfire.org Git - thirdparty/curl.git/commit
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)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 25 Sep 2023 18:03:09 +0000 (20:03 +0200)
commit9c7165e96a3a9a2d0b7059c87c699b5ca8cdae93
tree4a26463bb75713a9e03b48a47f9e1883c0c63c8f
parentb226bd679a68b8bf94cbb6d58837f00251560e63
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
CMakeLists.txt
configure.ac
lib/formdata.c