projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/inflate.c: handle failed malloc()
[firefly-linux-kernel-4.4.55.git]
/
lib
/
inflate.c
diff --git
a/lib/inflate.c
b/lib/inflate.c
index 845f91d3ac1226ad6bee1e87e1fc74169ccd36cf..9762294be06257b6d6e6873dbd6b0503f21029c1 100644
(file)
--- a/
lib/inflate.c
+++ b/
lib/inflate.c
@@
-811,6
+811,9
@@
DEBG("<dyn");
ll = malloc(sizeof(*ll) * (286+30)); /* literal/length and distance code lengths */
#endif
+ if (ll == NULL)
+ return 1;
+
/* make local bit buffer */
b = bb;
k = bk;