Task #1604 - libseccomp-2.5.3-8.fc40/scan-results.err
back to task #1604download
Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/api.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/db.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-562): libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c:2001: error[autoVariables]: Address of local auto-variable assigned to a function parameter. # 1999| memset(&pseudo_arch, 0, sizeof(pseudo_arch)); # 2000| pseudo_arch.endian = col->endian; # 2001|-> state->arch = &pseudo_arch; # 2002| # 2003| /* generate the badarch action */ Error: CPPCHECK_WARNING (CWE-562): libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c:2074: error[autoVariables]: Address of local auto-variable assigned to a function parameter. # 2072| # 2073| /* reset the state to the pseudo_arch for the final resolution */ # 2074|-> state->arch = &pseudo_arch; # 2075| # 2076| /* resolve any TGT_NXT jumps at the top level */ Error: COMPILER_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c: scope_hint: In function ‘_gen_bpf_build_bpf’ libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c:2074:21: warning[-Wdangling-pointer=]: storing the address of local variable ‘pseudo_arch’ in ‘state_236(D)->arch’ # 2074 | state->arch = &pseudo_arch; # | ~~~~~~~~~~~~^~~~~~~~~~~~~~ libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c:1996:25: note: ‘pseudo_arch’ declared here # 1996 | struct arch_def pseudo_arch; # | ^~~~~~~~~~~ libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_bpf.c:1982:49: note: ‘state’ declared here # 1982 | static int _gen_bpf_build_bpf(struct bpf_state *state, # | ~~~~~~~~~~~~~~~~~~^~~~~ # 2072| # 2073| /* reset the state to the pseudo_arch for the final resolution */ # 2074|-> state->arch = &pseudo_arch; # 2075| # 2076| /* resolve any TGT_NXT jumps at the top level */ Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/gen_pfc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/syscalls.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/src/system.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libseccomp-2.5.3-build/libseccomp-2.5.3/tools/scmp_bpf_sim.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.