nghttp2-1.59.0-2.fc40

List of Defects

Error: CLANG_WARNING: [#def1]
nghttp2-1.59.0/lib/nghttp2_buf.c:389:26: warning[core.NullDereference]: Dereference of null pointer
#  387|     }
#  388|   
#  389|->   *bufs->cur->buf.last++ = b;
#  390|   
#  391|     return 0;

Error: CLANG_WARNING: [#def2]
nghttp2-1.59.0/lib/nghttp2_buf.c:402:24: warning[core.NullDereference]: Dereference of null pointer (loaded from field 'last')
#  400|     }
#  401|   
#  402|->   *bufs->cur->buf.last = b;
#  403|   
#  404|     return 0;

Error: CLANG_WARNING: [#def3]
nghttp2-1.59.0/lib/nghttp2_buf.c:415:26: warning[core.NullDereference]: Dereference of null pointer
#  413|     }
#  414|   
#  415|->   *bufs->cur->buf.last++ |= b;
#  416|   
#  417|     return 0;

Error: CPPCHECK_WARNING (CWE-665): [#def4]
nghttp2-1.59.0/src/shrpx_config.h:569: error[selfInitialization]: Member variable 'hash < nghttp2 :: StringRef >' is initialized by itself.
#  567|   // DownstreamAddrGroupConfig::addrs.
#  568|   struct AffinityHash {
#  569|->   AffinityHash(size_t idx, uint32_t hash) : idx(idx), hash(hash) {}
#  570|   
#  571|     size_t idx;

Error: COMPILER_WARNING (CWE-477): [#def5]
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
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
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