abseil-cpp-20240722.0-1.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/flags/flag_test.cc:47:1: warning[-Wodr]: ‘FLAGS_mistyped_int_flag’ violates the C++ One Definition Rule
#   47 | ABSL_DECLARE_FLAG(int64_t, mistyped_int_flag);
#      | ^
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/flags/flag_test_defs.cc:21:1: note: type name ‘absl::lts_20240722::flags_internal::Flag<int>’ should match type name ‘absl::lts_20240722::flags_internal::Flag<long>’
#   21 | ABSL_FLAG(int, mistyped_int_flag, 0, "");
#      | ^
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/flags/flag_test_defs.cc:21:1: note: ‘FLAGS_mistyped_int_flag’ was previously declared here
#   45|   #include "absl/types/optional.h"
#   46|   
#   47|-> ABSL_DECLARE_FLAG(int64_t, mistyped_int_flag);
#   48|   ABSL_DECLARE_FLAG(std::vector<std::string>, mistyped_string_flag);
#   49|   

Error: COMPILER_WARNING: [#def2]
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/flags/flag_test.cc:48:1: warning[-Wodr]: ‘FLAGS_mistyped_string_flag’ violates the C++ One Definition Rule
#   48 | ABSL_DECLARE_FLAG(std::vector<std::string>, mistyped_string_flag);
#      | ^
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/flags/flag_test_defs.cc:22:1: note: type name ‘absl::lts_20240722::flags_internal::Flag<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >’ should match type name ‘absl::lts_20240722::flags_internal::Flag<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >’
#   22 | ABSL_FLAG(std::string, mistyped_string_flag, "", "");
#      | ^
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/flags/flag_test_defs.cc:22:1: note: ‘FLAGS_mistyped_string_flag’ was previously declared here
#   46|   
#   47|   ABSL_DECLARE_FLAG(int64_t, mistyped_int_flag);
#   48|-> ABSL_DECLARE_FLAG(std::vector<std::string>, mistyped_string_flag);
#   49|   
#   50|   namespace {

Error: COMPILER_WARNING: [#def3]
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/strings/internal/cord_rep_btree.h:294:57: warning[-Warray-bounds=]: array subscript ‘const struct CordRepBtree[0]’ is partly outside array bounds of ‘unsigned char[32]’
#  294 |   int height() const { return static_cast<int>(storage[0]); }
#      |                                                ~~~~~~~~~^
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/strings/internal/cord_rep_flat.h:122:41: note: object of size 32 allocated by ‘operator new(unsigned long)’
#  122 |     void* const raw_rep = ::operator new(size);
#      |                           ~~~~~~~~~~~~~~^~~~~~
#  292|     // kMaxHeight. `height` is implemented as an `int` as in some places we
#  293|     // use negative (-1) values for 'data edges'.
#  294|->   int height() const { return static_cast<int>(storage[0]); }
#  295|   
#  296|     // Properties: begin, back, end, front/back boundary indexes.

Error: COMPILER_WARNING: [#def4]
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/strings/internal/cord_rep_btree.h:294:57: warning[-Warray-bounds=]: array subscript ‘const struct CordRepBtree[0]’ is partly outside array bounds of ‘unsigned char[56]’
#  294 |   int height() const { return static_cast<int>(storage[0]); }
#      |                                                ~~~~~~~~~^
abseil-cpp-20240722.0-build/abseil-cpp-20240722.0/absl/strings/internal/cord_rep_flat.h:122:41: note: object of size 56 allocated by ‘operator new(unsigned long)’
#  122 |     void* const raw_rep = ::operator new(size);
#      |                           ~~~~~~~~~~~~~~^~~~~~
#  292|     // kMaxHeight. `height` is implemented as an `int` as in some places we
#  293|     // use negative (-1) values for 'data edges'.
#  294|->   int height() const { return static_cast<int>(storage[0]); }
#  295|   
#  296|     // Properties: begin, back, end, front/back boundary indexes.

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-192.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameabseil-cpp-20240722.0-1.fc42
store-results-to/tmp/tmp78wpmq6p/abseil-cpp-20240722.0-1.fc42.tar.xz
time-created2024-11-12 23:19:49
time-finished2024-11-12 23:30:17
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp78wpmq6p/abseil-cpp-20240722.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp78wpmq6p/abseil-cpp-20240722.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9