Error: CPPCHECK_WARNING (CWE-570): [#def1] protobuf-3.19.6/src/google/protobuf/api.pb.cc:238: error[subtractPointers]: Subtracting pointers that point to different objects # 236| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 237| reinterpret_cast<char*>(&source_context_) - reinterpret_cast<char*>(this)), # 238|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - # 239| reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_)); # 240| } Error: CPPCHECK_WARNING (CWE-570): [#def2] protobuf-3.19.6/src/google/protobuf/api.pb.cc:650: error[subtractPointers]: Subtracting pointers that point to different objects # 648| } # 649| ::memcpy(&request_streaming_, &from.request_streaming_, # 650|-> static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - # 651| reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_)); # 652| // @@protoc_insertion_point(copy_constructor:google.protobuf.Method) Error: CPPCHECK_WARNING (CWE-570): [#def3] protobuf-3.19.6/src/google/protobuf/api.pb.cc:670: error[subtractPointers]: Subtracting pointers that point to different objects # 668| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 669| reinterpret_cast<char*>(&request_streaming_) - reinterpret_cast<char*>(this)), # 670|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - # 671| reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_)); # 672| } Error: CPPCHECK_WARNING (CWE-570): [#def4] protobuf-3.19.6/src/google/protobuf/api.pb.cc:709: error[subtractPointers]: Subtracting pointers that point to different objects # 707| response_type_url_.ClearToEmpty(); # 708| ::memset(&request_streaming_, 0, static_cast<size_t>( # 709|-> reinterpret_cast<char*>(&syntax_) - # 710| reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_)); # 711| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); Error: CPPCHECK_WARNING (CWE-570): [#def5] protobuf-3.19.6/src/google/protobuf/duration.pb.cc:98: error[subtractPointers]: Subtracting pointers that point to different objects # 96| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); # 97| ::memcpy(&seconds_, &from.seconds_, # 98|-> static_cast<size_t>(reinterpret_cast<char*>(&nanos_) - # 99| reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); # 100| // @@protoc_insertion_point(copy_constructor:google.protobuf.Duration) Error: CPPCHECK_WARNING (CWE-570): [#def6] protobuf-3.19.6/src/google/protobuf/duration.pb.cc:106: error[subtractPointers]: Subtracting pointers that point to different objects # 104| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 105| reinterpret_cast<char*>(&seconds_) - reinterpret_cast<char*>(this)), # 106|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&nanos_) - # 107| reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); # 108| } Error: CPPCHECK_WARNING (CWE-570): [#def7] protobuf-3.19.6/src/google/protobuf/duration.pb.cc:138: error[subtractPointers]: Subtracting pointers that point to different objects # 136| # 137| ::memset(&seconds_, 0, static_cast<size_t>( # 138|-> reinterpret_cast<char*>(&nanos_) - # 139| reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); # 140| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); Error: COMPILER_WARNING (CWE-457): [#def8] protobuf-3.19.6/src/google/protobuf/extension_set_heavy.cc:40: included_from: Included from here. protobuf-3.19.6/src/google/protobuf/extension_set_inl.h: scope_hint: In member function 'google::protobuf::internal::ExtensionSet::ParseMessageSetItemTmpl<google::protobuf::Message, google::protobuf::UnknownFieldSet>(char const*, google::protobuf::Message const*, google::protobuf::internal::InternalMetadata*, google::protobuf::internal::ParseContext*)char const*' protobuf-3.19.6/src/google/protobuf/extension_set_inl.h:253:37: warning[-Wmaybe-uninitialized]: 'type_id' may be used uninitialized # 253 | ptr = ParseFieldMaybeLazily(static_cast<uint64_t>(type_id) * 8 + 2, ptr, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protobuf-3.19.6/src/google/protobuf/extension_set_inl.h:209:12: note: 'type_id' was declared here # 209 | uint32_t type_id; # | ^~~~~~~ # 251| } else if (tag == WireFormatLite::kMessageSetMessageTag) { # 252| if (state == State::kHasType) { # 253|-> ptr = ParseFieldMaybeLazily(static_cast<uint64_t>(type_id) * 8 + 2, ptr, # 254| extendee, metadata, ctx); # 255| GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); Error: COMPILER_WARNING: [#def9] protobuf-3.19.6/src/google/protobuf/generated_message_tctable_lite.cc:36: included_from: Included from here. protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h: scope_hint: In function 'void google::protobuf::internal::AlignFail(uintptr_t) [with long unsigned int align = 4]' protobuf-3.19.6/src/google/protobuf/generated_message_tctable_impl.h:103:1: warning: 'noreturn' function does return # 103 | } # | ^ # 101| void AlignFail(uintptr_t address) { # 102| GOOGLE_LOG(FATAL) << "Unaligned (" << align << ") access at " << address; # 103|-> } # 104| # 105| extern template void AlignFail<4>(uintptr_t); Error: CPPCHECK_WARNING (CWE-562): [#def10] protobuf-3.19.6/src/google/protobuf/map.h:725: error[returnTempReference]: Reference to temporary returned. # 723| template <typename K> # 724| value_type& operator[](K&& k) { # 725|-> return *insert(std::forward<K>(k)).first; # 726| } # 727| Error: CPPCHECK_WARNING (CWE-570): [#def11] protobuf-3.19.6/src/google/protobuf/timestamp.pb.cc:98: error[subtractPointers]: Subtracting pointers that point to different objects # 96| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); # 97| ::memcpy(&seconds_, &from.seconds_, # 98|-> static_cast<size_t>(reinterpret_cast<char*>(&nanos_) - # 99| reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); # 100| // @@protoc_insertion_point(copy_constructor:google.protobuf.Timestamp) Error: CPPCHECK_WARNING (CWE-570): [#def12] protobuf-3.19.6/src/google/protobuf/timestamp.pb.cc:106: error[subtractPointers]: Subtracting pointers that point to different objects # 104| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 105| reinterpret_cast<char*>(&seconds_) - reinterpret_cast<char*>(this)), # 106|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&nanos_) - # 107| reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); # 108| } Error: CPPCHECK_WARNING (CWE-570): [#def13] protobuf-3.19.6/src/google/protobuf/timestamp.pb.cc:138: error[subtractPointers]: Subtracting pointers that point to different objects # 136| # 137| ::memset(&seconds_, 0, static_cast<size_t>( # 138|-> reinterpret_cast<char*>(&nanos_) - # 139| reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_)); # 140| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); Error: CPPCHECK_WARNING (CWE-570): [#def14] protobuf-3.19.6/src/google/protobuf/type.pb.cc:398: error[subtractPointers]: Subtracting pointers that point to different objects # 396| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 397| reinterpret_cast<char*>(&source_context_) - reinterpret_cast<char*>(this)), # 398|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - # 399| reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_)); # 400| } Error: CPPCHECK_WARNING (CWE-570): [#def15] protobuf-3.19.6/src/google/protobuf/type.pb.cc:783: error[subtractPointers]: Subtracting pointers that point to different objects # 781| } # 782| ::memcpy(&kind_, &from.kind_, # 783|-> static_cast<size_t>(reinterpret_cast<char*>(&packed_) - # 784| reinterpret_cast<char*>(&kind_)) + sizeof(packed_)); # 785| // @@protoc_insertion_point(copy_constructor:google.protobuf.Field) Error: CPPCHECK_WARNING (CWE-570): [#def16] protobuf-3.19.6/src/google/protobuf/type.pb.cc:807: error[subtractPointers]: Subtracting pointers that point to different objects # 805| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 806| reinterpret_cast<char*>(&kind_) - reinterpret_cast<char*>(this)), # 807|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&packed_) - # 808| reinterpret_cast<char*>(&kind_)) + sizeof(packed_)); # 809| } Error: CPPCHECK_WARNING (CWE-570): [#def17] protobuf-3.19.6/src/google/protobuf/type.pb.cc:848: error[subtractPointers]: Subtracting pointers that point to different objects # 846| default_value_.ClearToEmpty(); # 847| ::memset(&kind_, 0, static_cast<size_t>( # 848|-> reinterpret_cast<char*>(&packed_) - # 849| reinterpret_cast<char*>(&kind_)) + sizeof(packed_)); # 850| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); Error: CPPCHECK_WARNING (CWE-570): [#def18] protobuf-3.19.6/src/google/protobuf/type.pb.cc:1302: error[subtractPointers]: Subtracting pointers that point to different objects # 1300| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( # 1301| reinterpret_cast<char*>(&source_context_) - reinterpret_cast<char*>(this)), # 1302|-> 0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - # 1303| reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_)); # 1304| } Error: CPPCHECK_WARNING (CWE-562): [#def19] protobuf-3.19.6/src/google/protobuf/util/internal/default_value_objectwriter.cc:530: error[invalidLifetime]: Using pointer to local variable 'node' that is out of scope. # 528| } # 529| # 530|-> child->set_is_placeholder(false); # 531| if (child->kind() == OBJECT && child->number_of_children() == 0) { # 532| child->PopulateChildren(typeinfo_); Error: CPPCHECK_WARNING (CWE-562): [#def20] protobuf-3.19.6/src/google/protobuf/util/internal/default_value_objectwriter.cc:531: error[invalidLifetime]: Using pointer to local variable 'node' that is out of scope. # 529| # 530| child->set_is_placeholder(false); # 531|-> if (child->kind() == OBJECT && child->number_of_children() == 0) { # 532| child->PopulateChildren(typeinfo_); # 533| } Error: CPPCHECK_WARNING (CWE-562): [#def21] protobuf-3.19.6/src/google/protobuf/util/internal/default_value_objectwriter.cc:532: error[invalidLifetime]: Using pointer to local variable 'node' that is out of scope. # 530| child->set_is_placeholder(false); # 531| if (child->kind() == OBJECT && child->number_of_children() == 0) { # 532|-> child->PopulateChildren(typeinfo_); # 533| } # 534| Error: CPPCHECK_WARNING (CWE-562): [#def22] protobuf-3.19.6/src/google/protobuf/util/internal/default_value_objectwriter.cc:536: error[invalidLifetime]: Using pointer to local variable 'node' that is out of scope. # 534| # 535| stack_.push(current_); # 536|-> current_ = child; # 537| return this; # 538| } Error: CPPCHECK_WARNING (CWE-562): [#def23] protobuf-3.19.6/src/google/protobuf/util/internal/default_value_objectwriter.cc:573: error[invalidLifetime]: Using pointer to local variable 'node' that is out of scope. # 571| current_->AddChild(node.release()); # 572| } # 573|-> child->set_is_placeholder(false); # 574| # 575| stack_.push(current_); Error: CPPCHECK_WARNING (CWE-562): [#def24] protobuf-3.19.6/src/google/protobuf/util/internal/default_value_objectwriter.cc:576: error[invalidLifetime]: Using pointer to local variable 'node' that is out of scope. # 574| # 575| stack_.push(current_); # 576|-> current_ = child; # 577| return this; # 578| } Error: CPPCHECK_WARNING (CWE-562): [#def25] protobuf-3.19.6/src/google/protobuf/util/internal/proto_writer.h:128: error[returnTempReference]: Reference to temporary returned. # 126| // Returns the location tracker to use for tracking locations for errors. # 127| const LocationTrackerInterface& location() { # 128|-> return element_ != nullptr ? *element_ : *tracker_; # 129| } # 130| Error: CPPCHECK_WARNING (CWE-457): [#def26] protobuf-3.19.6/src/google/protobuf/wire_format_lite.cc:368: warning[uninitvar]: Uninitialized variable: buf # 366| ptr += sizeof(a[0]); # 367| } # 368|-> output->WriteRaw(buf, to_do * sizeof(a[0])); # 369| } # 370| #endif
| analyzer-version-clippy | 1.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-142.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | protobuf-3.19.6-18.fc44 |
| store-results-to | /tmp/tmpd39ebslh/protobuf-3.19.6-18.fc44.tar.xz |
| time-created | 2025-10-28 20:02:57 |
| time-finished | 2025-10-28 20:13:43 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpd39ebslh/protobuf-3.19.6-18.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpd39ebslh/protobuf-3.19.6-18.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |