diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-23 08:34:11 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-23 08:48:04 +0200 |
commit | e6c869ab1753986b032463f2e0bd5fad7bc70e0f (patch) | |
tree | 6ef2ecc7a55ecb1fa9087e7d0e0628a7eb9616c8 /lib/sqfs/data_writer.c | |
parent | 88d53c4c124a6e3979a7b4f79b3f95bfc3706604 (diff) |
Fix tree node scanning
- Bail early on empty directories without touching the meta readers.
- Aport the directory read loop if we can't even read a header anymore,
no matter if there are bytes remaining.
- Also add that same condition to the inner loop.
The later two actually caused a numeric overflow on some particularly
malformed squashfs images, going into a RAM filling infinite loop.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer.c')
0 files changed, 0 insertions, 0 deletions