commit | 4a266cc3ce05eed2094b8ae1d4297b98efa4278c | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sun Sep 15 21:10:39 2019 +0200 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Tue Sep 17 10:38:29 2019 -0400 |
tree | cfd2b246b225338215892b38ff02c12b2c284d46 | |
parent | 4459d635b8f1cd79a128a344340fa452579cd713 [diff] |
libsepol: do not dereference a failed allocated pointer When strs_stack_init(&stack) fails to allocate memory and stack is still NULL, it should not be dereferenced with strs_stack_pop(stack). This issue has been found using Infer static analyzer. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>