libseccomp-2.5.5-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/api.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def2]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-562): [#def4]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c:2004: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2002|   	memset(&pseudo_arch, 0, sizeof(pseudo_arch));
# 2003|   	pseudo_arch.endian = col->endian;
# 2004|-> 	state->arch = &pseudo_arch;
# 2005|   
# 2006|   	/* generate the badarch action */

Error: CPPCHECK_WARNING (CWE-562): [#def5]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c:2077: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2075|   
# 2076|   	/* reset the state to the pseudo_arch for the final resolution */
# 2077|-> 	state->arch = &pseudo_arch;
# 2078|   
# 2079|   	/* resolve any TGT_NXT jumps at the top level */

Error: COMPILER_WARNING: [#def6]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c: scope_hint: In function '_gen_bpf_build_bpf'
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c:2077:21: warning[-Wdangling-pointer=]: storing the address of local variable 'pseudo_arch' in 'state_236(D)->arch'
# 2077 |         state->arch = &pseudo_arch;
#      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c:1999:25: note: 'pseudo_arch' declared here
# 1999 |         struct arch_def pseudo_arch;
#      |                         ^~~~~~~~~~~
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_bpf.c:1985:49: note: 'state' declared here
# 1985 | static int _gen_bpf_build_bpf(struct bpf_state *state,
#      |                               ~~~~~~~~~~~~~~~~~~^~~~~
# 2075|   
# 2076|   	/* reset the state to the pseudo_arch for the final resolution */
# 2077|-> 	state->arch = &pseudo_arch;
# 2078|   
# 2079|   	/* resolve any TGT_NXT jumps at the top level */

Error: CPPCHECK_WARNING: [#def7]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/gen_pfc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def8]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/syscalls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def9]
libseccomp-2.5.5-build/libseccomp-2.5.5/src/system.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def10]
libseccomp-2.5.5-build/libseccomp-2.5.5/tools/scmp_bpf_sim.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-80.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibseccomp-2.5.5-1.fc41
store-results-to/tmp/tmp_7yc19r8/libseccomp-2.5.5-1.fc41.tar.xz
time-created2024-07-03 15:52:31
time-finished2024-07-03 15:53:43
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_7yc19r8/libseccomp-2.5.5-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_7yc19r8/libseccomp-2.5.5-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9