diff options
author | ToddRK <ToddRK@example.com> | 2021-01-28 12:44:41 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2021-01-28 12:46:49 +0100 |
commit | deba6720fb96951bf81338363eb9e6c2f352ffd3 (patch) | |
tree | af9a982ce6fb225ef826ea00d95ee48e88e86370 /.github | |
parent | 867df2617cdf2a0eca0778c016ac684ead7c91c7 (diff) | |
download | util-linux-deba6720fb96951bf81338363eb9e6c2f352ffd3.tar.gz |
fsck.cramfs: fix fsck.cramfs crashes on blocksizes > 4K
fsck.cramfs crashes when extracting a cramfs image with a 16KB blocksize.
The read_buffer is hardcoded for a 4KB blocksize. When using a blocksize
larger than 4KB, the program's code uses indexes that go past the end of the
allocated space for the read_buffer and this causes the crash.
The following changes fix the problem for me in the latest 2.36.1 release of
fsck.cramfs.c. However there are hardcoded values of 4096 in the code that
might cause problems under other circumstances and I have not attempted to
fix those.
[kzak@redhat.com: - some coding style changes to code]
Fixes: https://github.com/karelzak/util-linux/issues/1232
Signed-off-by: ToddRK <ToddRK@example.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions