Task #1796 - policycoreutils-3.6-3.fc40/scan-results.err

back to task #1796
download
Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/load_policy/load_policy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/newrole/newrole.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/newrole/newrole.c:1368:2: warning[unix.Malloc]: Potential leak of memory pointed to by 'new_context'
# 1366|   	freecon(old_context);
# 1367|   	freecon(new_context);
# 1368|-> 	free(pw.pw_name);
# 1369|   	free(pw.pw_dir);
# 1370|   	free(pw.pw_shell);

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/run_init/open_init_pty.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/run_init/run_init.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/secon/secon.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/secon/secon.c:538:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'con_tmp'
#  536|   	}
#  537|   
#  538|-> 	return (con);
#  539|   }
#  540|   

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/semodule/semodule.c:446:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
#  444|   	semanage_set_create_store(sh, 1);
#  445|   
#  446|-> 	if ((result = semanage_connect(sh)) < 0) {
#  447|   		fprintf(stderr, "%s:  Could not connect to policy handler\n",
#  448|   			argv[0]);

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/semodule/semodule.c:453:8: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
#  451|   
#  452|   	if (reload) {
#  453|-> 		if ((result = semanage_reload_policy(sh)) < 0) {
#  454|   			fprintf(stderr, "%s:  Could not reload policy\n",
#  455|   				argv[0]);

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/semodule/semodule.c:461:8: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
#  459|   
#  460|   	if (build || check_ext_changes) {
#  461|-> 		if ((result = semanage_begin_transaction(sh)) < 0) {
#  462|   			fprintf(stderr, "%s:  Could not begin transaction:  %s\n",
#  463|   				argv[0], errno ? strerror(errno) : "");

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/sestatus/sestatus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/setfiles/restorecon_xattr.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/policycoreutils/setfiles/setfiles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476):
policycoreutils-3.6-build/selinux-3.6/policycoreutils/setsebool/setsebool.c: scope_hint: In function ‘setbool’
policycoreutils-3.6-build/selinux-3.6/policycoreutils/setsebool/setsebool.c:283:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value_ptr’
#  281|   		name = list[i];
#  282|   		value_ptr = strchr(name, '=');
#  283|-> 		*value_ptr = '\0';
#  284|   		value_ptr++;
#  285|   		if (pwd && pwd->pw_name)

Error: GCC_ANALYZER_WARNING (CWE-401):
policycoreutils-3.6-build/selinux-3.6/policycoreutils/setsebool/setsebool.c:308:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  306|   		for (i = 0; i < boolcnt; i++)
#  307|   			free(vallist[i].name);
#  308|-> 		free(vallist);
#  309|   	}
#  310|   	return -1;

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/python/audit2allow/sepolgen-ifgen-attr-helper.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/restorecond/restorecond.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/restorecond/utmpwatcher.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/restorecond/watch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/sandbox/seunshare.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/sandbox/seunshare.c:753:23: warning[deadcode.DeadStores]: Although the value stored to 'runuserdir_r' is used in the enclosing expression, the value is never actually read from 'runuserdir_r'
#  751|   	}
#  752|   	/* create runtime runuserdir */
#  753|-> 	if (runuserdir_s && (runuserdir_r = create_tmpdir(runuserdir_s, &st_runuserdir_s,
#  754|   						  &st_runuserdir_r, pwd, execcon)) == NULL) {
#  755|   		fprintf(stderr, _("Failed to create runtime $XDG_RUNTIME_DIR directory\n"));

Error: CPPCHECK_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c:174:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'file_contexts'
#  172|   			break;
#  173|   		default:
#  174|-> 			usage(argv[0]);
#  175|   			return EXIT_FAILURE;
#  176|   		}

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c:174:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'module'
#  172|   			break;
#  173|   		default:
#  174|-> 			usage(argv[0]);
#  175|   			return EXIT_FAILURE;
#  176|   		}

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c:174:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'netfilter_contexts'
#  172|   			break;
#  173|   		default:
#  174|-> 			usage(argv[0]);
#  175|   			return EXIT_FAILURE;
#  176|   		}

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c:174:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'outfile'
#  172|   			break;
#  173|   		default:
#  174|-> 			usage(argv[0]);
#  175|   			return EXIT_FAILURE;
#  176|   		}

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c:174:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'seusers'
#  172|   			break;
#  173|   		default:
#  174|-> 			usage(argv[0]);
#  175|   			return EXIT_FAILURE;
#  176|   		}

Error: CLANG_WARNING:
policycoreutils-3.6-build/selinux-3.6/semodule-utils/semodule_package/semodule_package.c:174:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'user_extra'
#  172|   			break;
#  173|   		default:
#  174|-> 			usage(argv[0]);
#  175|   			return EXIT_FAILURE;
#  176|   		}