mirror of https://github.com/hak5/openwrt.git
kernel: check return code of nla_parse in pcomp_lzma on 2.6.31
SVN-Revision: 17683lede-17.01
parent
c9bc7c504c
commit
60132f56f7
|
@ -1,6 +1,6 @@
|
|||
--- /dev/null
|
||||
+++ b/crypto/unlzma.c
|
||||
@@ -0,0 +1,772 @@
|
||||
@@ -0,0 +1,775 @@
|
||||
+/*
|
||||
+ * LZMA uncompresion module for pcomp
|
||||
+ * Copyright (C) 2009 Felix Fietkau <nbd@openwrt.org>
|
||||
|
@ -636,6 +636,9 @@
|
|||
+ return -EINVAL;
|
||||
+
|
||||
+ ret = nla_parse(tb, UNLZMA_DECOMP_MAX, p, len, NULL);
|
||||
+ if (ret)
|
||||
+ return ret;
|
||||
+
|
||||
+ if (!tb[UNLZMA_DECOMP_OUT_BUFFERS])
|
||||
+ return -EINVAL;
|
||||
+
|
||||
|
|
Loading…
Reference in New Issue