selinux/libsepol/include/sepol/policydb
James Carter cd575089db libsepol: Changes to ebitmap.h to fix compiler warnings
When compiling with the "-Wnull-dereference" flag, the compiler is
not smart enough to realize that anytime the ebitmap_t node field is
NULL, the highbit field will equal 0. This causes false positive
warnings to be generated.

Change the ebitmap_is_empty() and ebitmap_length() macros to check
for the node being NULL instead of just relying on the value of
highbit to eliminate these false warnings.

Signed-off-by: James Carter <jwcart2@gmail.com>
Acked-by: Petr Lautrbach <lautrbach@redhat.com>
2023-08-16 13:33:48 -04:00
..
avrule_block.h libsepol: do not #include <sys/cdefs.h> 2016-11-29 11:03:17 -05:00
avtab.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
conditional.h libsepol: rename struct member 2023-05-03 09:15:16 -04:00
constraint.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
context.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
ebitmap.h libsepol: Changes to ebitmap.h to fix compiler warnings 2023-08-16 13:33:48 -04:00
expand.h libsepol: do not #include <sys/cdefs.h> 2016-11-29 11:03:17 -05:00
flask_types.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
hashtab.h hashtab: update 2023-08-07 09:44:42 -04:00
hierarchy.h libsepol: do not #include <sys/cdefs.h> 2016-11-29 11:03:17 -05:00
link.h libsepol: do not #include <sys/cdefs.h> 2016-11-29 11:03:17 -05:00
mls_types.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
module.h libsepol: do not #include <sys/cdefs.h> 2016-11-29 11:03:17 -05:00
polcaps.h libsepol: add support for the new "init" initial SID 2023-06-30 10:29:06 +02:00
policydb.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
services.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
sidtab.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
symtab.h checkpolicy,libselinux,libsepol,policycoreutils,semodule-utils: update my email 2023-08-04 13:57:01 -04:00
util.h libsepol: include necessary headers in headers 2022-08-09 09:52:03 -04:00