platform_external_selinux/libsepol
Nicolas Iooss 913613da66
libsepol/cil: silence static analyser's use-after-free warning
clang's static analyze reports a use-after-free in
__cil_expr_to_string(), when __cil_expr_to_string_helper() does not
modify its third parameter (variable s1 here) in this loop:

    for (curr = curr->next; curr; curr = curr->next) {
        __cil_expr_to_string_helper(curr, flavor, &s1);
        cil_asprintf(&c2, "%s %s", c1, s1);
        free(c1);
        free(s1);
        c1 = c2;
    }

Silence this warning by making sure s1 is always NULL at the beginning
of every iteration of the loop.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-02-10 19:32:15 +01:00
..
cil libsepol/cil: silence static analyser's use-after-free warning 2019-02-10 19:32:15 +01:00
include libsepol: Create policydb_sort_ocontexts() 2018-10-12 13:38:00 -04:00
man Allow installing translated man pages 2019-01-28 12:03:57 +01:00
src libsepol: do not use uninitialized value for low_value 2019-02-06 09:08:58 +01:00
tests libsepol/tests: fix use of unitialized variable 2018-06-15 09:02:42 -04:00
utils libsepol: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 15:59:36 +01:00
.gitignore libsepol: build cil into libsepol 2014-08-26 08:03:31 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libsepol: build cil into libsepol 2014-08-26 08:03:31 -04:00
VERSION Update VERSIONs to 2.9-rc1 for release. 2019-01-25 11:48:54 +01:00