diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-12 11:41:50 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-12-12 11:45:05 +0100 |
commit | 40075fe0751a06c3373f53f36d44a27e79c2cca7 (patch) | |
tree | 229a1cc6f8fd41a9d000df64211022ae8628cd5e /unpack/fill_files.c | |
parent | bcb73d076b043c34ab88265c2bdddaff8b702cc1 (diff) |
Fix out of bounds writes in lzo compressor
The liblzo compression functions don't do any bounds checking,
instead they expect the destination buffer to be large enough
to hold the worst case encoding.
This commit modifies the lzo compressor to use a scratch buffer
for compression (with worst case size) and only copy to the actual
destination if the result fits.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/fill_files.c')
0 files changed, 0 insertions, 0 deletions