]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect-image: don't assert() on partition geometry from blkid 42950/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Thu, 9 Jul 2026 14:42:38 +0000 (15:42 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 14 Jul 2026 15:57:14 +0000 (16:57 +0100)
commite6f6ced7295ffef4295ad81ec726c26aa632fd0f
treea6681cae78c0e805e6800134adb0ed1988f9214e
parent41fc062c491ebdc0e5ccce8da1669f31d48e970a
dissect-image: don't assert() on partition geometry from blkid

The per-partition loop in dissect_image() reads the start and size (in
512-byte sectors) of each partition from libblkid and guards the
following byte conversions with assert(). Images sizes are input,
rather than programming, so return an error instead of asserting.

Follow-up for 88b3300fdc64d5320fb50d0f369d3fc0885e15e8
src/shared/dissect-image.c