]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hexdump: sanitize fiemap ioctl output
authorKarel Zak <kzak@redhat.com>
Wed, 25 Feb 2026 10:01:02 +0000 (11:01 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 25 Feb 2026 10:01:02 +0000 (11:01 +0100)
commitb3ab0e77d0afe049de7dfd691987943a9fc41f61
tree1a865961bb5e27428e80b555547862a7e2abf53c
parent43dc9a95bd74768171c0add2672c918c03dd5b6b
hexdump: sanitize fiemap ioctl output

Cap fm_mapped_extents to FIEMAP_EXTENTS_BATCH after each ioctl() call
to prevent potential out-of-bounds access if the kernel returns more
extents than requested.

Reported-by: Coverity Scan
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/hexdump-display.c