u-boot/fs/ext4
Stefan Brüns 0ceef3d371 ext4: Avoid out-of-bounds access of block bitmap
If the blocksize is 1024, count is initialized with 1. Incrementing count
by 8 will never match (count == fs->blksz * 8), and ptr may be
incremented beyond the buffer end if the bitmap is filled. Add the
startblock offset after the loop.

Remove the second loop, as only the first iteration will be done.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
2016-09-23 09:02:40 -04:00
..
crc16.c ext4fs write support 2012-08-09 23:48:02 +02:00
crc16.h ext4fs write support 2012-08-09 23:48:02 +02:00
dev.c dm: block: Adjust device calls to go through helpers function 2016-03-14 15:34:50 -06:00
ext4_common.c ext4: Avoid out-of-bounds access of block bitmap 2016-09-23 09:02:40 -04:00
ext4_common.h ext4: propagate error if creation of directory entry fails 2016-09-23 09:02:35 -04:00
ext4_journal.c ext4: fix endianess problems in ext4 write support 2016-09-23 09:02:04 -04:00
ext4_journal.h ext4: fix endianess problems in ext4 write support 2016-09-23 09:02:04 -04:00
ext4_write.c ext4: Avoid corruption of directories with hash tree indexes 2016-09-23 09:02:37 -04:00
ext4fs.c ext4: use kernel names for byte swaps 2016-09-23 09:02:02 -04:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile fs: descend into sub directories when it is necessary 2013-11-17 14:11:34 -05:00