selinux/policycoreutils
Nicolas Iooss 35af459220 policycoreutils: newrole: always initialize pw fields
In extract_pw_data(), if "getpwuid(uid)" fails, the function returns an
error value without initializing main's pw.pw_name. This leads main() to
call "free(pw.pw_name)" on an uninitialized value.

Use memset() to initialize structure pw in main().

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

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2017-04-12 14:48:36 -04:00
..
.tx Update Translations 2013-10-24 13:58:39 -04:00
hll policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
load_policy policycoreutils/load_policy: Drop is_selinux_enabled() check 2017-04-11 14:17:32 -04:00
man Merge branch 'fedora' into master-merge 2013-10-24 15:24:17 -04:00
newrole policycoreutils: newrole: always initialize pw fields 2017-04-12 14:48:36 -04:00
po sepolicy: update setup.py to remove C module 2016-09-23 16:33:49 -04:00
run_init policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
scripts policycoreutils: fixfiles: remove useless use of cat 2017-03-28 13:41:22 -04:00
secon policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
semodule policycoreutils/semodule: fix -Wwrite-strings warnings 2017-02-06 11:06:42 -05:00
sestatus Laurent Bigonville patch to fix various minor manpage issues and correct section numbering. 2013-10-24 13:58:37 -04:00
setfiles policycoreutils/setfiles: don't scramble stdout and stderr together 2017-03-28 13:41:18 -04:00
setsebool policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
.gitignore Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
VERSION Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00