nss-mdns-0.15.1-1.20251122114913929951.master.11.g3f0e34f

List of Findings

Error: CPPCHECK_WARNING (CWE-227): [#def1]
nss-mdns-0.15.1/src/avahi.c:140: error[IOWithoutPositioning]: Read and write operations without a call to a positioning function (fseek, fsetpos or rewind) or fflush in between result in undefined behaviour.
#  138|       fprintf(f, "RESOLVE-ADDRESS %s\n", inet_ntop(af, data, a, sizeof(a)));
#  139|   
#  140|->     if (!(fgets(ln, sizeof(ln), f))) {
#  141|           return AVAHI_RESOLVE_RESULT_UNAVAIL;
#  142|       }

Error: CPPCHECK_WARNING (CWE-398): [#def2]
nss-mdns-0.15.1/src/util.c:88: style[constVariablePointer]: Variable 't' can be declared as pointer to const
#   86|   
#   87|           while (!feof(mdns_allow_file)) {
#   88|->             char ln[128], ln2[129], *t;
#   89|   
#   90|               if (!fgets(ln, sizeof(ln), mdns_allow_file))

Scan Properties

analyzer-version-clippy1.91.1
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-216.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namenss-mdns-0.15.1-1.20251122114913929951.master.11.g3f0e34f
store-results-to/tmp/tmp532reuli/nss-mdns-0.15.1-1.20251122114913929951.master.11.g3f0e34f.tar.xz
time-created2025-11-23 05:30:52
time-finished2025-11-23 05:32:31
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmp532reuli/nss-mdns-0.15.1-1.20251122114913929951.master.11.g3f0e34f.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--cppcheck-add-flag=--enable=style' '/tmp/tmp532reuli/nss-mdns-0.15.1-1.20251122114913929951.master.11.g3f0e34f.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9