]> 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>
Wed, 28 Feb 2024 11:17:32 +0000 (12:17 +0100)
commit95aacefe18fa1ccb1296c752d292279a2f84fb51
tree402a180139f890354ce5fc85b570cbfc49054c96
parent277e3a872036d959b63317d15f7009dba3507c54
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>
(cherry picked from commit dfa1ad272528a92384adac523cf2f2949b767d8d)
text-utils/hexdump-display.c