]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hexdump: check blocksize when display data
authorKarel Zak <kzak@redhat.com>
Tue, 27 Feb 2024 17:38:02 +0000 (18:38 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Feb 2024 17:38:02 +0000 (18:38 +0100)
commitdfa1ad272528a92384adac523cf2f2949b767d8d
tree0885ef9055da731d58de09a94cd7ae94ca655070
parent16926147cb346fc3245b4ea5e4cb0fc47a4f198f
hexdump: check blocksize when display data

hexdump(1) stores input to buffer and apply format unit when prints
the output. The unit can move pointer which points to the buffer, but
code does not check for limits.

Fixes: https://github.com/util-linux/util-linux/issues/2806
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/hexdump-display.c