Home
last modified time | relevance | path

Searched hist:"0 ceef3d3710960347fde6c57f12f3de6fe9cfaaf" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/fs/ext4/
H A Dext4_common.c0ceef3d3710960347fde6c57f12f3de6fe9cfaaf Tue Sep 06 02:36:50 UTC 2016 Stefan Brüns <stefan.bruens@rwth-aachen.de> 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>