commit | 0b136a35e345ecf86c1343066a5206b4d794082c | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Sun Sep 01 20:06:31 2019 +0200 |
committer | James Carter <jwcart2@tycho.nsa.gov> | Tue Sep 17 10:38:38 2019 -0400 |
tree | bcecde2b9ef16e1d44a9e7728682d105f9834395 | |
parent | da8e3c7d3696096687983034a7e965e822a1a2b0 [diff] |
libsepol: do not dereference scope if it can be NULL Doing this looks wrong: len = scope->decl_ids_len; if (scope == NULL) { /* ... */ Move the dereferencing of scope after the NULL check. This issue has been found using Infer static analyzer. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>