billiob pushed a commit to branch master.

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

commit d558930d0112e180dda24dd722976d31024bed79
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Nov 19 20:55:10 2015 +0100

    lz4: fix CID 1339838:  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 380583e..73f1d95 100644
--- a/src/bin/lz4/lz4.c
+++ b/src/bin/lz4/lz4.c
@@ -687,6 +687,7 @@ int LZ4_compress_limitedOutput(const char* source, char* 
dest, int inputSize, in
 void* LZ4_createStream()
 {
     void* lz4s = ALLOCATOR(4, LZ4_STREAMSIZE_U32);
+    if (!lz4s) return NULL;
     MEM_INIT(lz4s, 0, LZ4_STREAMSIZE);
     return lz4s;
 }

-- 


Reply via email to