fs: ext4: Fix out of bounds memset
When a block we read is a sparse block, we memset the corresponding
output buffer to zero. If that block is the last block we read, we
may not memset the whole block, but only up to the length of the output
buffer, which may be shorter than a full block.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 27ee601 commit b1e22e2b03dfbb143dfac3a810ba9a8cae6058d8
@Sascha Hauer Sascha Hauer authored on 29 Oct 2019
Showing 1 changed file
View
fs/ext4/ext4fs.c