core: add NULL checks for parsing invalid code
commit19549432632cc32f3e95fb5b6a53328b58487f48
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Oct 2017 09:00:00 +0000 (26 12:00 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Oct 2017 09:02:28 +0000 (26 12:02 +0300)
tree3f7237498e6cc491532ae05fad9a935d3c1f4fcb
parent2f49638713ea629eb555f848fd6cb854a4a35d23
core: add NULL checks for parsing invalid code

These pointers are non-NULL when the code is valid, but sometimes NULL
with invalid code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_zero_to_err_ptr.c
smatch_helper.c