protobuf-c-1.5.2-1.fc44

List of Findings

Error: COMPILER_WARNING (CWE-195): [#def1]
protobuf-c-1.5.2/protoc-gen-c/c_message.cc: scope_hint: In member function ‘void protobuf_c::MessageGenerator::GenerateMessageDescriptor(google::protobuf::io::Printer*, bool)’
protobuf-c-1.5.2/protoc-gen-c/c_message.cc:583:30: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’
#  583 |       for (unsigned i = 0; i < descriptor_->field_count(); i++) {
#      |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  581|       if (!optimize_code_size) {
#  582|         std::vector<NameIndex> field_indices;
#  583|->       for (unsigned i = 0; i < descriptor_->field_count(); i++) {
#  584|           field_indices.push_back({ i, sorted_fields[i]->name() });
#  585|         }

Error: COMPILER_WARNING (CWE-195): [#def2]
protobuf-c-1.5.2/protoc-gen-c/c_service.cc: scope_hint: In member function ‘void protobuf_c::ServiceGenerator::GenerateServiceDescriptor(google::protobuf::io::Printer*)’
protobuf-c-1.5.2/protoc-gen-c/c_service.cc:208:26: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’
#  208 |   for (unsigned i = 0; i < n_methods; i++) {
#      |                        ~~^~~~~~~~~~~
#  206|     printer->Print(vars_, "static const ProtobufCMethodDescriptor $lcfullname$__method_descriptors[$n_methods$] =\n"
#  207|                          "{\n");
#  208|->   for (unsigned i = 0; i < n_methods; i++) {
#  209|       const google::protobuf::MethodDescriptor* method = descriptor_->method(i);
#  210|       vars_["method"] = std::string(method->name());

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-245.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-nameprotobuf-c-1.5.2-1.fc44
store-results-to/tmp/tmpitoxow71/protobuf-c-1.5.2-1.fc44.tar.xz
time-created2026-01-08 20:23:43
time-finished2026-01-08 20:25:19
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpitoxow71/protobuf-c-1.5.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpitoxow71/protobuf-c-1.5.2-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9