]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: use practical 16 MiB limit instead of SSIZE_MAX 42162/head
authorTristanInSec <tristan.mtn@gmail.com>
Mon, 18 May 2026 18:39:44 +0000 (14:39 -0400)
committerTristanInSec <tristan.mtn@gmail.com>
Mon, 18 May 2026 18:39:44 +0000 (14:39 -0400)
commita190e64dfb348273c626267efa5876055939fdeb
treef71049f41038ea26c5dff9cedceb1cc59aa5195c
parent08c281304cd6fd7bf20f5eb7aaa81c7ee4283b0c
dissect: use practical 16 MiB limit instead of SSIZE_MAX

As suggested by @yuwata, SSIZE_MAX is still too large and would cause
malloc() to fail anyway. Use a 16 MiB limit which is generous compared
to the typical 4 MiB maximum in cryptsetup (LUKS2_HDR_OFFSET_MAX).
src/shared/dissect-image.c