Skip to content
Snippets Groups Projects
Commit ecdfb419 authored by Ian Ray's avatar Ian Ray Committed by Stefano Babic
Browse files

ext4: recover from filesystem corruption when reading


Some fixes when reading EXT files and directory entries were identified
after using e2fuzz to corrupt an EXT3 filesystem:

 - Stop reading directory entries if the offset becomes badly aligned.

 - Avoid overwriting memory by clamping the length used to zero the buffer
   in ext4fs_read_file.  Also sanity check blocksize.

Signed-off-by: default avatarIan Ray <ian.ray@ge.com>
Signed-off-by: default avatarMartyn Welch <martyn.welch@collabora.co.uk>
Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
parent 2feec4ea
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment