billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=04089d1e11321f89de4bd6cde36926677c791ed8

commit 04089d1e11321f89de4bd6cde36926677c791ed8
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Nov 19 20:58:17 2015 +0100

    lz4: fix CID 1339837:  Null pointer dereference
---
 src/bin/lz4/lz4.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/lz4/lz4.c b/src/bin/lz4/lz4.c
index 73f1d95..b3062f0 100644
--- a/src/bin/lz4/lz4.c
+++ b/src/bin/lz4/lz4.c
@@ -1078,6 +1078,7 @@ typedef struct
 void* LZ4_createStreamDecode()
 {
     void* lz4s = ALLOCATOR(sizeof(U32), LZ4_STREAMDECODESIZE_U32);
+    if (!lz4s) return NULL;
     MEM_INIT(lz4s, 0, LZ4_STREAMDECODESIZE);
     return lz4s;
 }

-- 


Reply via email to