]> git.ipfire.org Git - thirdparty/curl.git/commit
rustls: cap maximum allowed CRL file size to 8MB
authorDaniel Stenberg <daniel@haxx.se>
Fri, 14 Mar 2025 07:28:02 +0000 (08:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 14 Mar 2025 08:11:36 +0000 (09:11 +0100)
commit116f490c81908f09432d45824c9ae62c26a13bd9
tree43c49677127763d299596a93acc13f3b385168a6
parent27e07b2943ca4ab3f8e4910466231f822299421d
rustls: cap maximum allowed CRL file size to 8MB

Allowing 4GB on a 32-bit system is just asking for problems and could in
theory cause integer overflow in the dynbuf code.

The dynbuf now has an assert to catch code trying to set a max larger
than half SIZE_T_MAX.

Reported-by: Rinku Das
Closes #16716
lib/dynbuf.c
lib/dynbuf.h
lib/vtls/rustls.c