]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hardlink: fix memory corruption (size calculation)
authorKarel Zak <kzak@redhat.com>
Thu, 26 Dec 2024 11:45:31 +0000 (12:45 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Dec 2024 11:45:31 +0000 (12:45 +0100)
commit70c1ffbdf4ecac30536e1af13764adbd883a161d
tree62d31bffd46a78299da168f8217f92f5ec63a026
parent4e14b5731efcd703ad13e24362448c87cecb5424
hardlink: fix memory corruption (size calculation)

The current code rounds down the values for readsiz and blocksmax,
which is incorrect. The sizes must be large enough to match the files.

Addresses: https://github.com/util-linux/util-linux/issues/3330
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/fileeq.c