platform_external_selinux/libsemanage
Nicolas Iooss 85da6194ea libsemanage: do not dereference a NULL pointer when calloc() fails
If "names = calloc(num_modinfos, sizeof(*names))" fails in
semanage_get_cil_paths(), the function tries to frees items in array
"names" even though it is NULL. Avoid this by returning directly.

This issue has been found using clang's static analyzer.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2017-03-29 10:26:55 -04:00
..
example Author: Daniel J Walsh 2008-09-15 09:25:33 -04:00
include Fix multiple spelling errors 2016-05-02 08:45:45 -04:00
man libsemanage: Add option to remove HLL files after compilation 2015-02-27 08:41:59 -05:00
src libsemanage: do not dereference a NULL pointer when calloc() fails 2017-03-29 10:26:55 -04:00
tests libsemanage/tests: include libsepol headers from $DESTDIR 2017-03-01 10:42:34 -05:00
utils Load libsepol.so.1 instead of libsepol.so 2015-10-28 08:54:27 -04:00
.gitignore Add subdirectory .gitignore files. 2009-10-20 21:25:55 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libsemanage: semanage store migration script 2014-08-26 08:03:31 -04:00
VERSION Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00