Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
nghttp2-1.59.0-build/nghttp2-1.59.0/src/shrpx_dns_resolver.cc: scope_hint: In member function ‘int shrpx::DNSResolver::resolve(const nghttp2::StringRef&, int)’
nghttp2-1.59.0-build/nghttp2-1.59.0/src/shrpx_dns_resolver.cc:176:21: warning[-Wdeprecated-declarations]: ‘void ares_gethostbyname(ares_channel_t*, const char*, int, ares_host_callback, void*)’ is deprecated: Use ares_getaddrinfo instead
#  176 |   ares_gethostbyname(channel_, name_.c_str(), family_, host_cb, this);
#      |   ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nghttp2-1.59.0-build/nghttp2-1.59.0/src/shrpx_dns_resolver.h:36: included_from: Included from here.
nghttp2-1.59.0-build/nghttp2-1.59.0/src/shrpx_dns_resolver.cc:25: included_from: Included from here.
/usr/include/ares.h:609:58: note: declared here
#  609 | CARES_EXTERN CARES_DEPRECATED_FOR(ares_getaddrinfo) void ares_gethostbyname(
#      |                                                          ^~~~~~~~~~~~~~~~~~
#  174|     status_ = DNSResolverStatus::RUNNING;
#  175|   
#  176|->   ares_gethostbyname(channel_, name_.c_str(), family_, host_cb, this);
#  177|     reset_timeout();
#  178|   

Error: CPPCHECK_WARNING: [#def2]
nghttp2-1.59.0-build/nghttp2-1.59.0/src/shrpx_exec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def3]
nghttp2-1.59.0-build/nghttp2-1.59.0/src/shrpx_signal.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-148.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namenghttp2-1.62.1-1.fc41
diffbase-store-results-to/tmp/tmp0zdor6ar/nghttp2-1.62.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 16:25:17
diffbase-time-finished2024-07-03 16:29:13
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp0zdor6ar/nghttp2-1.62.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp0zdor6ar/nghttp2-1.62.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-148.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namenghttp2-1.59.0-2.fc40
store-results-to/tmp/tmptys6vkvx/nghttp2-1.59.0-2.fc40.tar.xz
time-created2024-07-03 16:20:51
time-finished2024-07-03 16:24:50
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptys6vkvx/nghttp2-1.59.0-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmptys6vkvx/nghttp2-1.59.0-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9