Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-477): [#def1]
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/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/src/shrpx_dns_resolver.h:36: included_from: Included from here.
nghttp2-1.59.0/src/shrpx_dns_resolver.cc:25: included_from: Included from here.
/usr/include/ares.h:592:58: note: declared here
#  592 | 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|   

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.3
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-166.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namenghttp2-1.61.0-1.fc41
diffbase-store-results-to/tmp/tmpqtp53td_/nghttp2-1.61.0-1.fc41.tar.xz
diffbase-time-created2024-04-22 11:08:13
diffbase-time-finished2024-04-22 11:12:42
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpqtp53td_/nghttp2-1.61.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpqtp53td_/nghttp2-1.61.0-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-166.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namenghttp2-1.59.0-2.fc40
store-results-to/tmp/tmpxkcgz391/nghttp2-1.59.0-2.fc40.tar.xz
time-created2024-04-22 11:03:48
time-finished2024-04-22 11:08:01
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpxkcgz391/nghttp2-1.59.0-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpxkcgz391/nghttp2-1.59.0-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9