commit | cfc57c2e7038349fbb4ae1f88d43e416eb38d13d | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sun Sep 01 20:06:36 2019 +0200 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Tue Sep 17 10:38:59 2019 -0400 |
tree | 509a24218dd001be9d861e125c9d0d6012e6895a | |
parent | 0da7718310cbb6e942349c5a515c83b9f6dea432 [diff] |
libsepol/tests: do not dereference a NULL pointer In test_attr_types, the pointer decl is allowed to be NULL in the beginning, but is dereferenced to produce a helpful message right before a CU_ASSERT_FATAL. Make this derefence not happen if the pointer is NULL. This issue has been found using clang's static analyzer. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>