diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-29 08:57:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-29 09:56:32 +0100 |
commit | b1e22e2b03dfbb143dfac3a810ba9a8cae6058d8 (patch) | |
tree | e9d9a997b8dd78c8cf4efb52866d9c9646242b91 /include/globalvar.h | |
parent | 27ee6010f89b4b2cd1e9e05975c1af2887ef04c5 (diff) | |
download | barebox-b1e22e2b03dfbb143dfac3a810ba9a8cae6058d8.tar.gz barebox-b1e22e2b03dfbb143dfac3a810ba9a8cae6058d8.tar.xz |
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>
Diffstat (limited to 'include/globalvar.h')
0 files changed, 0 insertions, 0 deletions