Error: CPPCHECK_WARNING (CWE-398): [#def1] avahi-0.9.rc4/avahi-core/dns-test.c:349: style[constVariablePointer]: Variable 'parsed' can be declared as pointer to const # 347| size_t off; # 348| AvahiDnsPacket *p1; # 349|-> AvahiRecord *parsed; # 350| # 351| pkt = avahi_malloc0(total); Error: CPPCHECK_WARNING (CWE-398): [#def2] avahi-0.9.rc4/avahi-core/dns-test.c:388: style[constVariablePointer]: Variable 'parsed' can be declared as pointer to const # 386| size_t off; # 387| AvahiDnsPacket *p1; # 388|-> AvahiRecord *parsed; # 389| # 390| pkt = avahi_malloc0(total); Error: CPPCHECK_WARNING (CWE-563): [#def3] avahi-0.9.rc4/avahi-core/dns-test.c:398: style[unreadVariable]: Variable 'off' is assigned a value that is never used. # 396| pkt[off++] = 0; pkt[off++] = 0; pkt[off++] = 0x11; pkt[off++] = 0x94; /* ttl */ # 397| pkt[off++] = 0x00; pkt[off++] = (uint8_t) sizeof(rd); /* rdlength */ # 398|-> memcpy(pkt + off, rd, sizeof(rd)); off += sizeof(rd); # 399| # 400| p1 = avahi_dns_packet_new(0); Error: CLANG_WARNING: [#def4] avahi-0.9.rc4/avahi-core/dns-test.c:398:44: warning[deadcode.DeadStores]: Value stored to 'off' is never read # 396| pkt[off++] = 0; pkt[off++] = 0; pkt[off++] = 0x11; pkt[off++] = 0x94; /* ttl */ # 397| pkt[off++] = 0x00; pkt[off++] = (uint8_t) sizeof(rd); /* rdlength */ # 398|-> memcpy(pkt + off, rd, sizeof(rd)); off += sizeof(rd); # 399| # 400| p1 = avahi_dns_packet_new(0); Error: GCC_ANALYZER_WARNING (CWE-688): [#def5] avahi-0.9.rc4/avahi-core/dns.c: scope_hint: In function 'parse_rdata' avahi-0.9.rc4/avahi-core/dns.c:652:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected avahi-0.9.rc4/avahi-common/malloc.h:28: included_from: Included from here. avahi-0.9.rc4/avahi-core/dns.c:34: included_from: Included from here. avahi-0.9.rc4/avahi-core/dns.c:36: included_from: Included from here. avahi-0.9.rc4/avahi-core/dns.c:514:12: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:514:12: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:364:13: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:364:13: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:395:46: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:364:13: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:364:13: note: in expansion of macro 'AVAHI_DNS_PACKET_DATA' avahi-0.9.rc4/avahi-core/dns.c:25: included_from: Included from here. /usr/include/string.h:47:14: note: argument 2 of 'memcpy' must be non-null # 650| memcpy(r->data.generic.data, buf, namelen); # 651| if (bitmap_size > 0) # 652|-> memcpy((uint8_t*) r->data.generic.data + namelen, bitmap, bitmap_size); # 653| # 654| if (avahi_dns_packet_skip(p, bitmap_size) < 0)
| analyzer-version-clang | 22.1.8 |
| analyzer-version-clippy | 1.96.0 |
| analyzer-version-cppcheck | 2.21.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clang | 22.1.8 |
| diffbase-analyzer-version-clippy | 1.96.0 |
| diffbase-analyzer-version-cppcheck | 2.21.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clang, clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-109.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | avahi-0.9.rc4-8.20260619052612963529.master.46.g16fe942 |
| diffbase-store-results-to | /tmp/tmpc1qrc71z/avahi-0.9.rc4-8.20260619052612963529.master.46.g16fe942.tar.xz |
| diffbase-time-created | 2026-06-20 01:47:45 |
| diffbase-time-finished | 2026-06-20 01:51:30 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpc1qrc71z/avahi-0.9.rc4-8.20260619052612963529.master.46.g16fe942.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmpc1qrc71z/avahi-0.9.rc4-8.20260619052612963529.master.46.g16fe942.src.rpm' |
| diffbase-tool-version | csmock-3.8.6.20260619.162144.gb9cd2d0-1.el9 |
| enabled-plugins | clang, clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-109.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | avahi-0.9.rc4-8.20260620013605533117.pr937.47.g199f00c |
| store-results-to | /tmp/tmplowuhtfa/avahi-0.9.rc4-8.20260620013605533117.pr937.47.g199f00c.tar.xz |
| time-created | 2026-06-20 01:51:51 |
| time-finished | 2026-06-20 01:55:05 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmplowuhtfa/avahi-0.9.rc4-8.20260620013605533117.pr937.47.g199f00c.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '-t' 'clang' '/tmp/tmplowuhtfa/avahi-0.9.rc4-8.20260620013605533117.pr937.47.g199f00c.src.rpm' |
| tool-version | csmock-3.8.6.20260619.162144.gb9cd2d0-1.el9 |