Error: CPPCHECK_WARNING (CWE-401): [#def1] dwz-0.15-build/dwz/args.c:493: error[memleakOnRealloc]: Common realloc mistake: 'skip_producers' nulled but not freed upon failure # 491| skip_producers_size += 10; # 492| alloc_size = skip_producers_size * sizeof (const char *); # 493|-> skip_producers = realloc (skip_producers, alloc_size); # 494| } # 495| Error: CPPCHECK_WARNING (CWE-476): [#def2] dwz-0.15-build/dwz/dwz.c:7798: warning[nullPointer]: Possible null pointer dereference: def # 7796| # 7797| assert (!die->die_remove); # 7798|-> assert (def->die_remove); # 7799| def->die_remove = 0; # 7800| die->die_remove = 1; Error: CPPCHECK_WARNING (CWE-476): [#def3] dwz-0.15-build/dwz/dwz.c:7799: warning[nullPointer]: Possible null pointer dereference: def # 7797| assert (!die->die_remove); # 7798| assert (def->die_remove); # 7799|-> def->die_remove = 0; # 7800| die->die_remove = 1; # 7801| def->die_ref_seen = die->die_ref_seen; Error: CPPCHECK_WARNING (CWE-476): [#def4] dwz-0.15-build/dwz/dwz.c:7801: warning[nullPointer]: Possible null pointer dereference: def # 7799| def->die_remove = 0; # 7800| die->die_remove = 1; # 7801|-> def->die_ref_seen = die->die_ref_seen; # 7802| dw_die_ref next = def->die_nextdup; # 7803| if (prev) Error: CPPCHECK_WARNING (CWE-476): [#def5] dwz-0.15-build/dwz/dwz.c:7802: warning[nullPointer]: Possible null pointer dereference: def # 7800| die->die_remove = 1; # 7801| def->die_ref_seen = die->die_ref_seen; # 7802|-> dw_die_ref next = def->die_nextdup; # 7803| if (prev) # 7804| prev->die_nextdup = next; Error: CPPCHECK_WARNING (CWE-476): [#def6] dwz-0.15-build/dwz/dwz.c:7805: warning[nullPointer]: Possible null pointer dereference: def # 7803| if (prev) # 7804| prev->die_nextdup = next; # 7805|-> def->die_nextdup = die; # 7806| for (d = def; d; prev = d, d = d->die_nextdup) # 7807| { Error: CPPCHECK_WARNING (CWE-457): [#def7] dwz-0.15-build/dwz/dwz.c:13911: warning[uninitvar]: Uninitialized variable: sorted_section_numbers #13909| #13910| compare_section_numbers_implicit_arg = dso; #13911|-> qsort (sorted_section_numbers, nr_sections, #13912| sizeof (sorted_section_numbers[0]), compare_section_numbers); #13913| compare_section_numbers_implicit_arg = NULL; Error: COMPILER_WARNING (CWE-252): [#def8] dwz-0.15-build/dwz/dwz.c: scope_hint: In function ‘get_token’ dwz-0.15-build/dwz/dwz.c:15310:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ #15310 | read (readfd, &buf, 1); # | ^~~~~~~~~~~~~~~~~~~~~~ #15308| close (writefd); #15309| char buf; #15310|-> read (readfd, &buf, 1); #15311| close (readfd); #15312| } Error: COMPILER_WARNING (CWE-252): [#def9] dwz-0.15-build/dwz/dwz.c: scope_hint: In function ‘pass_token’ dwz-0.15-build/dwz/dwz.c:15322:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ #15322 | write (writefd, &buf, 1); # | ^~~~~~~~~~~~~~~~~~~~~~~~ #15320| close (readfd); #15321| char buf = '\0'; #15322|-> write (writefd, &buf, 1); #15323| close (writefd); #15324| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] dwz-0.15-build/dwz/hashtab.c: scope_hint: In function ‘htab_remove_elt’ dwz-0.15-build/dwz/hashtab.c:459:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 457| # 458| slot = htab_find_slot (htab, element, NO_INSERT); # 459|-> if (*slot == EMPTY_ENTRY) # 460| return; # 461| Error: GCC_ANALYZER_WARNING (CWE-476): [#def11] dwz-0.15-build/dwz/pool.c: scope_hint: In function ‘pool_alloc_1’ dwz-0.15-build/dwz/pool.c:54:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘new_pool’ # 52| if (new_pool == NULL) # 53| dwz_oom (); # 54|-> *(unsigned char **) new_pool = pool; # 55| pool_next = new_pool + sizeof (unsigned char *); # 56| pool_limit = new_pool + new_size;
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-81.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | dwz-0.15-8.fc42 |
store-results-to | /tmp/tmp0htklsmr/dwz-0.15-8.fc42.tar.xz |
time-created | 2024-11-12 23:43:08 |
time-finished | 2024-11-12 23:44:49 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp0htklsmr/dwz-0.15-8.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp0htklsmr/dwz-0.15-8.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |