annobin-12.60-1.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
annobin-12.60-build/annobin-12.60/annocheck/annocheck.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def2]
annobin-12.60-build/annobin-12.60/annocheck/annocheck.c:827:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'canon_dir'
# 825| if (debug_dir)
# 826| {
# 827|-> TRY_DEBUG ("%s/%s", debug_dir, link);
# 828|
# 829| /* Then try the usual sub-directories of that directory. */
Error: CLANG_WARNING: [#def3]
annobin-12.60-build/annobin-12.60/annocheck/annocheck.c:855:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'canon_dir'
# 853|
# 854| /* Next try in the current directory. */
# 855|-> TRY_DEBUG ("./%s", link);
# 856|
# 857| /* Then try in a subdirectory called .debug. */
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
annobin-12.60-build/annobin-12.60/annocheck/annocheck.h:21: included_from: Included from here.
annobin-12.60-build/annobin-12.60/annocheck/annocheck.c:16: included_from: Included from here.
annobin-12.60-build/annobin-12.60/annocheck/annocheck.c: scope_hint: In function ‘process_command_line’
annobin-12.60-build/annobin-12.60/annocheck/annocheck.c:2552:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tmpdir’
# 2550|
# 2551| tmpdir = strdup (parameter);
# 2552|-> assert (tmpdir[0] == '/');
# 2553| }
# 2554| else
Error: CPPCHECK_WARNING: [#def5]
annobin-12.60-build/annobin-12.60/annocheck/built-by.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING: [#def6]
annobin-12.60-build/annobin-12.60/annocheck/built-by.c: scope_hint: In function ‘parse_dw_at_language’
annobin-12.60-build/annobin-12.60/annocheck/built-by.c:419:76: warning[-Wformat=]: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘Dwarf_Word’ {aka ‘long unsigned int’}
# 419 | einfo (WARN, "%s: unrecognised value for DW_AT_language attribute: %#x", data->filename, val);
# | ~~^ ~~~
# | | |
# | unsigned int Dwarf_Word {aka long unsigned int}
# | %#lx
# 417|
# 418| default:
# 419|-> einfo (WARN, "%s: unrecognised value for DW_AT_language attribute: %#x", data->filename, val);
# 420| break;
# 421| }
Error: CPPCHECK_WARNING: [#def7]
annobin-12.60-build/annobin-12.60/annocheck/hardened.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/cp-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def9]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/cp-demangle.c:5133: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5131|
# 5132| adpm[i].next = dpi->modifiers;
# 5133|-> dpi->modifiers = &adpm[i];
# 5134| adpm[i].mod = typed_name;
# 5135| adpm[i].printed = 0;
Error: CPPCHECK_WARNING (CWE-562): [#def10]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/cp-demangle.c:5171: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5169| adpm[i] = adpm[i - 1];
# 5170| adpm[i].next = &adpm[i - 1];
# 5171|-> dpi->modifiers = &adpm[i];
# 5172|
# 5173| adpm[i - 1].mod = typed_name;
Error: CPPCHECK_WARNING (CWE-562): [#def11]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/cp-demangle.c:5192: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5190| {
# 5191| dpt.next = dpi->templates;
# 5192|-> dpi->templates = &dpt;
# 5193| dpt.template_decl = typed_name;
# 5194| }
Error: CLANG_WARNING: [#def12]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/cp-demangle.c:5199:19: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5197|
# 5198| if (typed_name->type == DEMANGLE_COMPONENT_TEMPLATE)
# 5199|-> dpi->templates = dpt.next;
# 5200|
# 5201| /* If the modifiers didn't get printed by the type, print them
Error: CPPCHECK_WARNING (CWE-562): [#def13]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/cp-demangle.c:5651: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 5649|
# 5650| adpm[0].next = hold_modifiers;
# 5651|-> dpi->modifiers = &adpm[0];
# 5652| adpm[0].mod = dc;
# 5653| adpm[0].printed = 0;
Error: CPPCHECK_WARNING: [#def14]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/d-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def15]
annobin-12.60-build/annobin-12.60/annocheck/libiberty/rust-demangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
annobin-12.60-build/annobin-12.60/annocheck/notes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
annobin-12.60-build/annobin-12.60/annocheck/size.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-155.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | annobin-12.60-1.fc41 |
store-results-to | /tmp/tmp8r2mdwl0/annobin-12.60-1.fc41.tar.xz |
time-created | 2024-07-03 12:00:47 |
time-finished | 2024-07-03 12:03:09 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp8r2mdwl0/annobin-12.60-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp8r2mdwl0/annobin-12.60-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |