summaryrefslogtreecommitdiffstats
path: root/lib/decompress_bunzip2.c
diff options
context:
space:
mode:
authorPhillip Lougher2009-12-14 22:45:19 +0100
committerH. Peter Anvin2009-12-15 23:04:12 +0100
commitc1e7c3ae59b065bf7ff24a05cb609b2f9e314db6 (patch)
treeb75700eb5160c026761f20e74010406a7fe58bec /lib/decompress_bunzip2.c
parentx86: Fix kprobes build with non-gawk awk (diff)
downloadkernel-qcow2-linux-c1e7c3ae59b065bf7ff24a05cb609b2f9e314db6.tar.gz
kernel-qcow2-linux-c1e7c3ae59b065bf7ff24a05cb609b2f9e314db6.tar.xz
kernel-qcow2-linux-c1e7c3ae59b065bf7ff24a05cb609b2f9e314db6.zip
bzip2/lzma/gzip: pre-boot malloc doesn't return NULL on failure
The trivial malloc implementation used in the pre-boot environment by the decompressors returns a bad pointer on failure (falling through after calling error). This is doubly wrong - the callers expect malloc to return NULL on failure, second the error function is intended to be used by the decompressors to propagate errors to *their* callers. The decompressors have no access to any state set by the error function. Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk> LKML-Reference: <4b26b1ef.hIInb2AYPMtImAJO%phillip@lougher.demon.co.uk> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib/decompress_bunzip2.c')
0 files changed, 0 insertions, 0 deletions