Decompressors: check for write errors in unlzo.c
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 11 Nov 2011 13:35:05 +0000 (14:35 +0100)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 11 Nov 2011 13:35:05 +0000 (14:35 +0100)
commit1fdb4c9a338713db7abda4dbe81fb09d61e16699
treecdab940375d59f0868ecbc7d60e657406f11e1e3
parent24bde2170dde6ed1a4a3de7c96a019eb4dae9501
Decompressors: check for write errors in unlzo.c

From: Lasse Collin <lasse.collin@tukaani.org>

The return value of flush() is not checked in unlzo().  This means that
the decompressor won't stop even if the caller doesn't want more data.
This can happen e.g.  with a corrupt LZO-compressed initramfs image.

Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/common/unlzo.c