util-linux/disk-utils
ToddRK deba6720fb 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>
2021-01-28 12:46:49 +01:00
..
Makemodule.am mkswap: remove deprecated SELinux matchpathcon() 2021-01-13 14:58:43 +01:00
addpart.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
addpart.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
blockdev.8 blockdev: fix man page formatting 2020-09-26 18:15:42 +02:00
blockdev.c blockdev: Don't fail on missing start sector 2020-06-05 10:04:21 +02:00
cfdisk.8 cfdisk: (man) add info when cfdisk writes to the device 2021-01-05 14:43:01 +01:00
cfdisk.c Merge branch 'disk-utils-document-resize' of https://github.com/vdmz/util-linux 2021-01-05 14:32:22 +01:00
cramfs.h libfdisk: (docs) update year 2018-03-20 18:55:49 +01:00
cramfs_common.c libfdisk: (docs) update year 2018-03-20 18:55:49 +01:00
delpart.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
delpart.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
fdformat.8 disk-utils: Add reference to ufiformat(8) 2020-06-27 21:15:10 +02:00
fdformat.c *: spelling and grammar fixes 2020-12-17 23:39:05 +02:00
fdisk-list.c misc: fix typos [codespell] 2020-11-04 11:42:25 +00:00
fdisk-list.h misc: fix typos [codespell] 2020-11-04 11:42:25 +00:00
fdisk-menu.c fdisk: always report fdisk_create_disklabel() errors 2020-09-30 11:49:05 +02:00
fdisk.8 man: make tilde and caret characters to render correctly 2020-11-14 15:22:34 +00:00
fdisk.c fdisk: add --lock and LOCK_BLOCK_DEVICE 2020-05-27 17:00:41 +02:00
fdisk.h fdisk: fix readline interaction with signals 2017-08-24 15:48:46 +02:00
fsck.8 Manual pages: order ENVIRONMENT / FILES / CONFORMING TO consistently 2020-05-22 10:25:52 +02:00
fsck.c fsck, libblkid: fix printf format string issue [coverity scan] 2020-10-16 11:35:16 +02:00
fsck.cramfs.8 manpages: fix "The example command" in AVAILABILITY section 2020-07-24 09:09:43 +02:00
fsck.cramfs.c fsck.cramfs: fix fsck.cramfs crashes on blocksizes > 4K 2021-01-28 12:46:49 +01:00
fsck.minix.8 doc: disk-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
fsck.minix.c [clang-tidy] fix wrong *cmp usage 2020-04-20 13:21:00 -07:00
isosize.8 doc: disk-utils/*: Fix some warnings from "mandoc -T lint" 2020-06-15 11:28:01 +02:00
isosize.c isosize: move ISO size functions into a shared header 2019-12-16 14:29:24 +08:00
minix_programs.h minix: change types in header file 2012-12-19 11:38:51 +01:00
mkfs.8 Manual pages: use the term "exit status" 2020-05-20 12:56:52 +02:00
mkfs.bfs.8 Manual pages: use the term "exit status" 2020-05-20 12:56:52 +02:00
mkfs.bfs.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
mkfs.c cleanup: Remove some spurious spaces 2019-10-01 13:01:43 +02:00
mkfs.cramfs.8 manpages: fix "The example command" in AVAILABILITY section 2020-07-24 09:09:43 +02:00
mkfs.cramfs.c [clang-tidy] do not use else after return 2020-04-20 13:20:59 -07:00
mkfs.minix.8 mkfs.minix: add --lock and LOCK_BLOCK_DEVICE 2020-10-14 11:33:13 +02:00
mkfs.minix.c mkfs.minix: add --lock and LOCK_BLOCK_DEVICE 2020-10-14 11:33:13 +02:00
mkswap.8 mkswap: add --verbose, reduce extents check output 2020-09-10 12:54:14 +02:00
mkswap.c mkswap: remove deprecated SELinux matchpathcon() 2021-01-13 14:58:43 +01:00
partx.8 Manual pages: order AUTHORS / COPYRIGHT / SEE ALSO / AVAILABILITY consistently 2020-05-22 10:25:49 +02:00
partx.c [clang-tidy] fix wrong *cmp usage 2020-04-20 13:21:00 -07:00
raw.8 Manual pages: raw.8: Minor formatting and wording fixes 2020-07-24 14:41:49 +02:00
raw.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
resizepart.8 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
resizepart.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00
sfdisk.8 man: make tilde and caret characters to render correctly 2020-11-14 15:22:34 +00:00
sfdisk.c sfdisk: fix backward --move-data 2020-11-06 11:38:51 +01:00
swaplabel.8 Subject: docs: disk-utils: change "allows to <verb>" to "allows <verb>ing" 2020-07-14 10:37:52 +02:00
swaplabel.c misc: consolidate version printing and close_stdout() 2019-04-16 15:14:13 +02:00