]> git.baikalelectronics.ru Git - kernel.git/commit
squashfs: fix potential buffer over-run on 4K block file systems
authorPhillip Lougher <phillip@lougher.demon.co.uk>
Fri, 23 Apr 2010 01:32:02 +0000 (02:32 +0100)
committerPhillip Lougher <phillip@lougher.demon.co.uk>
Sun, 25 Apr 2010 01:09:05 +0000 (02:09 +0100)
commite5e207784712f9ea243751f794f74b4f8aa1273f
tree1a0844867f6aa1600a07a8a5321325ddf016a6e6
parenta7548067eb7eea35c8303961289e8a5642477ffc
squashfs: fix potential buffer over-run on 4K block file systems

Sizing the buffer based on block size is incorrect, leading
to a potential buffer over-run on 4K block size file systems
(because the metadata block size is always 8K).  This bug
doesn't seem have triggered because 4K block size file systems
are not default, and also because metadata blocks after
compression tend to be less than 4K.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
fs/squashfs/block.c