]> git.ipfire.org Git - thirdparty/curl.git/commit
mime: fix use of fseek()
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Oct 2025 12:41:08 +0000 (14:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Oct 2025 14:13:35 +0000 (16:13 +0200)
commit4fb12f289189e8113967e9c9da09958fd8bfa4cb
tree936928fbeae1c3b9bb2b861de0f14ca0264830fa
parentc0564ceb3a51feb0f5c5236809aa8420644b1fc7
mime: fix use of fseek()

Avoid the possible 64-bit offset truncation when used on systems with
small 'long', like Windows.

bonus: make mime_open_file() return bool

Pointed out by ZeroPath
Closes #19100
lib/formdata.c
lib/mime.c
lib/mime.h