protobuf-c-1.5.1-1.fc43

List of Findings

Error: COMPILER_WARNING: [#def1]
protobuf-c-1.5.1/protoc-gen-c/c_field.cc:209:68: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#  209 |       new std::unique_ptr<FieldGenerator>[descriptor->field_count()]) {
#      |                                                                    ^
/usr/include/c++/15/new: scope_hint: In member function '__ct_base '
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#  207|     : descriptor_(descriptor),
#  208|       field_generators_(
#  209|->       new std::unique_ptr<FieldGenerator>[descriptor->field_count()]) {
#  210|     // Construct all the FieldGenerators.
#  211|     for (int i = 0; i < descriptor->field_count(); i++) {

Error: COMPILER_WARNING: [#def2]
protobuf-c-1.5.1/protoc-gen-c/c_file.cc:85:71: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   85 |       new std::unique_ptr<MessageGenerator>[file->message_type_count()]),
#      |                                                                       ^
/usr/include/c++/15/new: scope_hint: In member function 'Generate'
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   83|     : file_(file),
#   84|       message_generators_(
#   85|->       new std::unique_ptr<MessageGenerator>[file->message_type_count()]),
#   86|       enum_generators_(
#   87|         new std::unique_ptr<EnumGenerator>[file->enum_type_count()]),

Error: COMPILER_WARNING: [#def3]
protobuf-c-1.5.1/protoc-gen-c/c_file.cc:87:65: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   87 |       new std::unique_ptr<EnumGenerator>[file->enum_type_count()]),
#      |                                                                 ^
/usr/include/c++/15/new: scope_hint: In member function 'Generate'
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   85|         new std::unique_ptr<MessageGenerator>[file->message_type_count()]),
#   86|       enum_generators_(
#   87|->       new std::unique_ptr<EnumGenerator>[file->enum_type_count()]),
#   88|       service_generators_(
#   89|         new std::unique_ptr<ServiceGenerator>[file->service_count()]),

Error: COMPILER_WARNING: [#def4]
protobuf-c-1.5.1/protoc-gen-c/c_file.cc:89:66: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   89 |       new std::unique_ptr<ServiceGenerator>[file->service_count()]),
#      |                                                                  ^
/usr/include/c++/15/new: scope_hint: In member function 'Generate'
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   87|         new std::unique_ptr<EnumGenerator>[file->enum_type_count()]),
#   88|       service_generators_(
#   89|->       new std::unique_ptr<ServiceGenerator>[file->service_count()]),
#   90|       extension_generators_(
#   91|         new std::unique_ptr<ExtensionGenerator>[file->extension_count()]) {

Error: COMPILER_WARNING: [#def5]
protobuf-c-1.5.1/protoc-gen-c/c_file.cc:91:70: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   91 |       new std::unique_ptr<ExtensionGenerator>[file->extension_count()]) {
#      |                                                                      ^
/usr/include/c++/15/new: scope_hint: In member function 'Generate'
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   89|         new std::unique_ptr<ServiceGenerator>[file->service_count()]),
#   90|       extension_generators_(
#   91|->       new std::unique_ptr<ExtensionGenerator>[file->extension_count()]) {
#   92|   
#   93|     for (int i = 0; i < file->message_type_count(); i++) {

Error: COMPILER_WARNING: [#def6]
protobuf-c-1.5.1/protoc-gen-c/c_message.cc:90:38: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   90 |       descriptor->nested_type_count()]),
#      |                                      ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   88|       field_generators_(descriptor),
#   89|       nested_generators_(new std::unique_ptr<MessageGenerator>[
#   90|->       descriptor->nested_type_count()]),
#   91|       enum_generators_(new std::unique_ptr<EnumGenerator>[
#   92|         descriptor->enum_type_count()]),

Error: COMPILER_WARNING: [#def7]
protobuf-c-1.5.1/protoc-gen-c/c_message.cc:92:36: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   92 |       descriptor->enum_type_count()]),
#      |                                    ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   90|         descriptor->nested_type_count()]),
#   91|       enum_generators_(new std::unique_ptr<EnumGenerator>[
#   92|->       descriptor->enum_type_count()]),
#   93|       extension_generators_(new std::unique_ptr<ExtensionGenerator>[
#   94|         descriptor->extension_count()]) {

Error: COMPILER_WARNING: [#def8]
protobuf-c-1.5.1/protoc-gen-c/c_message.cc:94:36: warning[-Walloc-size-larger-than=]: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807
#   94 |       descriptor->extension_count()]) {
#      |                                    ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function 'operator new []' declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   92|         descriptor->enum_type_count()]),
#   93|       extension_generators_(new std::unique_ptr<ExtensionGenerator>[
#   94|->       descriptor->extension_count()]) {
#   95|   
#   96|     for (int i = 0; i < descriptor->nested_type_count(); i++) {

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-229.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameprotobuf-c-1.5.1-1.fc43
store-results-to/tmp/tmp5rdh66t7/protobuf-c-1.5.1-1.fc43.tar.xz
time-created2025-04-25 14:58:03
time-finished2025-04-25 14:59:38
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp5rdh66t7/protobuf-c-1.5.1-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp5rdh66t7/protobuf-c-1.5.1-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9