diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-03-10 23:30:15 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-03-10 23:31:54 +0100 |
commit | 82f83c9515aaf99d12f6aa101c4d7b7463850e8b (patch) | |
tree | 574d82b3b089b4b697e073737341c36dfc8d73cb /lib/sqfs/comp/lzma.c | |
parent | f20ed9eef65cb9ce56f4a7abd07ad80979b888ad (diff) |
Fix: guard against potential overflow in file size calculation
The block_count is a size_t, so on 32 bit platforms the multiplication
might be truncated before the comparison with filesz.
On 64 bit platforms, it could potentially also overflow the 64 bit
bounds of the data type.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/comp/lzma.c')
0 files changed, 0 insertions, 0 deletions