]> git.ipfire.org Git - thirdparty/curl.git/commit
base64: make base64_encode() error on too long input
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Oct 2025 10:32:15 +0000 (11:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Oct 2025 14:41:28 +0000 (15:41 +0100)
commitc5de083bcc92e8edecbb4214b0ca5107496a80f6
tree456f7113e21b811bf70ee795b0df47fad81dd0ef
parent80258309b26546e27837432b0121f4e65e74b030
base64: make base64_encode() error on too long input

The maximum size is set to 16MB.

It should not possible to call this function with this large input, but
this is a precaution to catch mistakes and replaces the earlier check on
architectures with small size_t.

Closes #19280
lib/curlx/base64.c
lib/curlx/base64.h