mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-28 07:20:30 +00:00
Nicolas Iooss reports: When __cil_permx_to_bitmap() calls __cil_permx_str_to_int() on an invalid number, local variablt "bitmap" is left initialized when the function returns and its memory is leaked. This memory leak has been found by running clang's Address Sanitizer on a set of policies generated by American Fuzzy Lop. Move the initialization of bitmap to right before ebitmap_set_bit() and after the call to __cil_permx_str_to_int(). Signed-off-by: James Carter <jwcart2@tycho.nsa.gov> |
||
---|---|---|
.. | ||
include/cil | ||
src | ||
test | ||
.gitignore |