[PATCH] mkfs.jffs2.c: Fix issue with crashing when using lzo compression
Jussi Hakala
jussi.hakala at hut.fi
Tue Apr 15 10:27:12 EDT 2008
Calling jffs2_compressors_init() before page_size results in invalid
compression buffer, which in turn leads to segmentation fault when lzo
compression is used, for example:
mkfs.jffs2 -r /path-to/mtd-test -o /tmp/mtd-test.jffs2 -e 128KiB -l -n
-X lzo -x zlib
Thanks to Siarhei Siamashka <siarhei dot siamashka at nokia dot com> for
the patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lzo-fix.patch
Type: text/x-diff
Size: 781 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20080415/cccef0fe/attachment.bin
More information about the linux-mtd
mailing list