Skip to content
Commit f3065f60 authored by Phillip Lougher's avatar Phillip Lougher
Browse files

Squashfs: fix block size use in LZO decompressor



Sizing the buffer using block size alone is incorrect leading
to a potential buffer over-run on 4K block size file systems
(because the metadata block size is always 8K).  Srclength is
set to the maximum expected size of the decompressed block and
it is block_size or 8K depending on whether a data or metadata
block is being decompressed.

Signed-off-by: default avatarPhillip Lougher <phillip@lougher.demon.co.uk>
parent 79cb8ced
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment