diff options
| author | Ian Ray <[email protected]> | 2017-11-08 15:35:10 +0000 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2017-11-20 09:58:31 +0100 |
| commit | ecdfb4195b20eb2dcde3c4083170016c13c69e8b (patch) | |
| tree | 7781fc0c6a8fa9e6c3019fd369e1570a45db13cb /include/linux/linux_string.h | |
| parent | 2feec4eafd40b4b121a0f7d7f602e25a39d9d403 (diff) | |
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: Ian Ray <[email protected]>
Signed-off-by: Martyn Welch <[email protected]>
Reviewed-by: Stefano Babic <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
