aboutsummaryrefslogtreecommitdiff
path: root/lib/util/write_data.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-23 08:34:11 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-23 08:48:04 +0200
commite6c869ab1753986b032463f2e0bd5fad7bc70e0f (patch)
tree6ef2ecc7a55ecb1fa9087e7d0e0628a7eb9616c8 /lib/util/write_data.c
parent88d53c4c124a6e3979a7b4f79b3f95bfc3706604 (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/util/write_data.c')
0 files changed, 0 insertions, 0 deletions