billiob pushed a commit to branch master.

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

commit eae5306942d908bd27c72c60a789f3357e9bb72b
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Nov 19 20:53:52 2015 +0100

    lz4: fix CID 1339839: 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 b30d445..380583e 100644
--- a/src/bin/lz4/lz4.c
+++ b/src/bin/lz4/lz4.c
@@ -1195,6 +1195,7 @@ int LZ4_resetStreamState(void* state, const char* 
inputBuffer)
 void* LZ4_create (const char* inputBuffer)
 {
     void* lz4ds = ALLOCATOR(4, LZ4_STREAMSIZE_U32);
+    if (!lz4ds) return NULL;
     LZ4_init ((LZ4_stream_t_internal*)lz4ds, (const BYTE*)inputBuffer);
     return lz4ds;
 }

-- 


Reply via email to