libzypp-17.34.1-4.fc42

List of Findings

Error: CPPCHECK_WARNING (CWE-570): [#def1]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/media/provider.pb.cc:507: error[subtractPointers]: Subtracting pointers that point to different objects
#  505|     _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
#  506|     ::memcpy(&request_id_, &from.request_id_,
#  507|->     static_cast<size_t>(reinterpret_cast<char*>(&message_code_) -
#  508|       reinterpret_cast<char*>(&request_id_)) + sizeof(message_code_));
#  509|     // @@protoc_insertion_point(copy_constructor:zypp.proto.ProvideMessage)

Error: CPPCHECK_WARNING (CWE-570): [#def2]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/media/provider.pb.cc:515: error[subtractPointers]: Subtracting pointers that point to different objects
#  513|   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
#  514|       reinterpret_cast<char*>(&request_id_) - reinterpret_cast<char*>(this)),
#  515|->     0, static_cast<size_t>(reinterpret_cast<char*>(&message_code_) -
#  516|       reinterpret_cast<char*>(&request_id_)) + sizeof(message_code_));
#  517|   }

Error: CPPCHECK_WARNING (CWE-570): [#def3]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/media/provider.pb.cc:548: error[subtractPointers]: Subtracting pointers that point to different objects
#  546|     fields_.Clear();
#  547|     ::memset(&request_id_, 0, static_cast<size_t>(
#  548|->       reinterpret_cast<char*>(&message_code_) -
#  549|         reinterpret_cast<char*>(&request_id_)) + sizeof(message_code_));
#  550|     _internal_metadata_.Clear<std::string>();

Error: CPPCHECK_WARNING (CWE-570): [#def4]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/media/provider.pb.cc:988: error[subtractPointers]: Subtracting pointers that point to different objects
#  986|     }
#  987|     ::memcpy(&protocol_version_, &from.protocol_version_,
#  988|->     static_cast<size_t>(reinterpret_cast<char*>(&cfg_flags_) -
#  989|       reinterpret_cast<char*>(&protocol_version_)) + sizeof(cfg_flags_));
#  990|     // @@protoc_insertion_point(copy_constructor:zypp.proto.Capabilities)

Error: CPPCHECK_WARNING (CWE-570): [#def5]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/media/provider.pb.cc:1000: error[subtractPointers]: Subtracting pointers that point to different objects
#  998|   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
#  999|       reinterpret_cast<char*>(&protocol_version_) - reinterpret_cast<char*>(this)),
# 1000|->     0, static_cast<size_t>(reinterpret_cast<char*>(&cfg_flags_) -
# 1001|       reinterpret_cast<char*>(&protocol_version_)) + sizeof(cfg_flags_));
# 1002|   }

Error: CPPCHECK_WARNING (CWE-570): [#def6]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/media/provider.pb.cc:1035: error[subtractPointers]: Subtracting pointers that point to different objects
# 1033|     worker_name_.ClearToEmpty();
# 1034|     ::memset(&protocol_version_, 0, static_cast<size_t>(
# 1035|->       reinterpret_cast<char*>(&cfg_flags_) -
# 1036|         reinterpret_cast<char*>(&protocol_version_)) + sizeof(cfg_flags_));
# 1037|     _internal_metadata_.Clear<std::string>();

Error: CPPCHECK_WARNING (CWE-570): [#def7]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:1231: error[subtractPointers]: Subtracting pointers that point to different objects
# 1229|     }
# 1230|     ::memcpy(&flags_, &from.flags_,
# 1231|->     static_cast<size_t>(reinterpret_cast<char*>(&ignorearch_) -
# 1232|       reinterpret_cast<char*>(&flags_)) + sizeof(ignorearch_));
# 1233|     // @@protoc_insertion_point(copy_constructor:zypp.proto.target.Commit)

Error: CPPCHECK_WARNING (CWE-570): [#def8]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:1255: error[subtractPointers]: Subtracting pointers that point to different objects
# 1253|   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
# 1254|       reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(this)),
# 1255|->     0, static_cast<size_t>(reinterpret_cast<char*>(&ignorearch_) -
# 1256|       reinterpret_cast<char*>(&flags_)) + sizeof(ignorearch_));
# 1257|   }

Error: CPPCHECK_WARNING (CWE-570): [#def9]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:1296: error[subtractPointers]: Subtracting pointers that point to different objects
# 1294|     lockfilepath_.ClearToEmpty();
# 1295|     ::memset(&flags_, 0, static_cast<size_t>(
# 1296|->       reinterpret_cast<char*>(&ignorearch_) -
# 1297|         reinterpret_cast<char*>(&flags_)) + sizeof(ignorearch_));
# 1298|     _internal_metadata_.Clear<std::string>();

Error: CPPCHECK_WARNING (CWE-570): [#def10]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:2770: error[subtractPointers]: Subtracting pointers that point to different objects
# 2768|     _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
# 2769|     ::memcpy(&stepid_, &from.stepid_,
# 2770|->     static_cast<size_t>(reinterpret_cast<char*>(&amount_) -
# 2771|       reinterpret_cast<char*>(&stepid_)) + sizeof(amount_));
# 2772|     // @@protoc_insertion_point(copy_constructor:zypp.proto.target.PackageProgress)

Error: CPPCHECK_WARNING (CWE-570): [#def11]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:2778: error[subtractPointers]: Subtracting pointers that point to different objects
# 2776|   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
# 2777|       reinterpret_cast<char*>(&stepid_) - reinterpret_cast<char*>(this)),
# 2778|->     0, static_cast<size_t>(reinterpret_cast<char*>(&amount_) -
# 2779|       reinterpret_cast<char*>(&stepid_)) + sizeof(amount_));
# 2780|   }

Error: CPPCHECK_WARNING (CWE-570): [#def12]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:2810: error[subtractPointers]: Subtracting pointers that point to different objects
# 2808|   
# 2809|     ::memset(&stepid_, 0, static_cast<size_t>(
# 2810|->       reinterpret_cast<char*>(&amount_) -
# 2811|         reinterpret_cast<char*>(&stepid_)) + sizeof(amount_));
# 2812|     _internal_metadata_.Clear<std::string>();

Error: CPPCHECK_WARNING (CWE-570): [#def13]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:4055: error[subtractPointers]: Subtracting pointers that point to different objects
# 4053|     _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
# 4054|     ::memcpy(&stepid_, &from.stepid_,
# 4055|->     static_cast<size_t>(reinterpret_cast<char*>(&fatal_) -
# 4056|       reinterpret_cast<char*>(&stepid_)) + sizeof(fatal_));
# 4057|     // @@protoc_insertion_point(copy_constructor:zypp.proto.target.ScriptError)

Error: CPPCHECK_WARNING (CWE-570): [#def14]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:4063: error[subtractPointers]: Subtracting pointers that point to different objects
# 4061|   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
# 4062|       reinterpret_cast<char*>(&stepid_) - reinterpret_cast<char*>(this)),
# 4063|->     0, static_cast<size_t>(reinterpret_cast<char*>(&fatal_) -
# 4064|       reinterpret_cast<char*>(&stepid_)) + sizeof(fatal_));
# 4065|   }

Error: CPPCHECK_WARNING (CWE-570): [#def15]
libzypp-17.34.1-build/libzypp-17.34.1/redhat-linux-build/zypp-proto/target/commit.pb.cc:4095: error[subtractPointers]: Subtracting pointers that point to different objects
# 4093|   
# 4094|     ::memset(&stepid_, 0, static_cast<size_t>(
# 4095|->       reinterpret_cast<char*>(&fatal_) -
# 4096|         reinterpret_cast<char*>(&stepid_)) + sizeof(fatal_));
# 4097|     _internal_metadata_.Clear<std::string>();

Error: COMPILER_WARNING (CWE-252): [#def16]
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/FtpServer.cc: scope_hint: In constructor ‘FtpServer::Impl::Impl(const zypp::filesystem::Pathname&, unsigned int, bool)’
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/FtpServer.cc:90:12: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’
#   90 |       pipe ( _wakeupPipe );
#      |       ~~~~~^~~~~~~~~~~~~~~
#   88|       {
#   89|         // wake up pipe to interrupt poll()
#   90|->       pipe ( _wakeupPipe );
#   91|         fcntl( _wakeupPipe[0], F_SETFL, O_NONBLOCK );
#   92|   

Error: COMPILER_WARNING (CWE-252): [#def17]
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/FtpServer.cc: scope_hint: In member function ‘void FtpServer::Impl::stop()’
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/FtpServer.cc:280:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  280 |         write( _wakeupPipe[1], "\n", 1);
#      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#  278|   
#  279|           //signal the thread to wake up
#  280|->         write( _wakeupPipe[1], "\n", 1);
#  281|   
#  282|           _thrd->join();

Error: COMPILER_WARNING (CWE-252): [#def18]
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/WebServer.cc: scope_hint: In constructor ‘WebServer::Impl::Impl(const zypp::filesystem::Pathname&, unsigned int, bool)’
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/WebServer.cc:121:12: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’
#  121 |       pipe ( _wakeupPipe );
#      |       ~~~~~^~~~~~~~~~~~~~~
#  119|   
#  120|         // wake up pipe to interrupt poll()
#  121|->       pipe ( _wakeupPipe );
#  122|         fcntl( _wakeupPipe[0], F_SETFL, O_NONBLOCK );
#  123|   

Error: COMPILER_WARNING (CWE-252): [#def19]
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/WebServer.cc: scope_hint: In member function ‘void WebServer::Impl::stop()’
libzypp-17.34.1-build/libzypp-17.34.1/tests/lib/WebServer.cc:414:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  414 |         write( _wakeupPipe[1], "\n", 1);
#      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#  412|   
#  413|           //signal the thread to wake up
#  414|->         write( _wakeupPipe[1], "\n", 1);
#  415|   
#  416|           _thrd->join();

Error: COMPILER_WARNING (CWE-1164): [#def20]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PoolQuery_test.cc:909:15: warning[-Wunused-function]: ‘std::string {anonymous}::serialized(const std::string&)’ defined but not used
#  909 |   std::string serialized( const std::string & arg_r )
#      |               ^~~~~~~~~~
#  907|   
#  908|   
#  909|->   std::string serialized( const std::string & arg_r )
#  910|     { return "\n" + arg_r + "\n\n"; }
#  911|   

Error: COMPILER_WARNING (CWE-1164): [#def21]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc: scope_hint: In function ‘void test()’
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc:73:45: warning[-Wunused-local-typedefs]: typedef ‘constPtr_element_type’ locally defined but not used
#   73 |     typedef typename constPtr::element_type constPtr_element_type;
#      |                                             ^~~~~~~~~~~~~~~~~~~~~
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc: scope_hint: In instantiation of ‘void cowt() [with RW = zypp::RWCOW_pointer<NonIntrusive, zypp::rw_pointer::Shared<NonIntrusive> >]’
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc:146:78:   required from here
#  146 |   cowt<RWCOW_pointer<NonIntrusive,       rw_pointer::Shared<NonIntrusive> > >();
#      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
#   71|       typedef typename RW::constPtrType       constPtr;
#   72|       typedef typename Ptr::element_type      Ptr_element_type;
#   73|->     typedef typename constPtr::element_type constPtr_element_type;
#   74|       // initial NULL
#   75|       RW ptr;

Error: COMPILER_WARNING (CWE-563): [#def22]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc:125:19: warning[-Wunused-variable]: unused variable ‘ptrid’
#  125 |     unsigned long ptrid = ptr->numericId();
#      |                   ^~~~~
#  123|       // create
#  124|       RW ptr( new Ptr_element_type );
#  125|->     unsigned long ptrid = ptr->numericId();
#  126|       // share
#  127|       RW ptr2( ptr );

Error: COMPILER_WARNING (CWE-563): [#def23]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc:129:19: warning[-Wunused-variable]: unused variable ‘ptrid2’
#  129 |     unsigned long ptrid2 = ptr2->numericId();
#      |                   ^~~~~~
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc: scope_hint: In instantiation of ‘void cowt() [with RW = zypp::RWCOW_pointer<const NonIntrusive, zypp::rw_pointer::Shared<NonIntrusive> >]’
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/PtrTypes_test.cc:147:78:   required from here
#  147 |   cowt<RWCOW_pointer<const NonIntrusive, rw_pointer::Shared<NonIntrusive> > >();
#      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
#  127|       RW ptr2( ptr );
#  128|       // clone aon access
#  129|->     unsigned long ptrid2 = ptr2->numericId();
#  130|       assert( ptrid != ptrid2 );
#  131|     }

Error: COMPILER_WARNING: [#def24]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/Url_test.cc: scope_hint: In member function ‘void plugin_scriptpath::test_method()’
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/Url_test.cc:290:29: warning[-Wrange-loop-construct]: loop variable ‘t’ of type ‘const std::string&’ {aka ‘const std::__cxx11::basic_string<char>&’} binds to a temporary constructed from type ‘const char* const’
#  290 |   for ( const std::string & t : { "script", "script/", "/script", "/script/", "./script", "./script/" } )
#      |                             ^
libzypp-17.34.1-build/libzypp-17.34.1/tests/zypp/Url_test.cc:290:29: note: use non-reference type ‘const std::string’ {aka ‘const std::__cxx11::basic_string<char>’} to make the copy explicit or ‘const char* const&’ to prevent copying
#  288|   {
#  289|     // plugin script path must not be rewritten
#  290|->   for ( const std::string & t : { "script", "script/", "/script", "/script/", "./script", "./script/" } )
#  291|     {
#  292|       BOOST_CHECK_EQUAL( Url("plugin:"+t).getPathName(),	t );

Error: COMPILER_WARNING (CWE-252): [#def25]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In lambda function
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc:52:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#   52 |     ::write( writeFd, text.data(), text.length() );
#      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   50|   
#   51|     std::thread writer( []( int writeFd, std::string_view text ){
#   52|->     ::write( writeFd, text.data(), text.length() );
#   53|       ::close( writeFd );
#   54|     }, pipeFds[1], text );

Error: COMPILER_WARNING (CWE-252): [#def26]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In lambda function
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc:119:14: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  119 |       ::write( writeFd, text.data(), text.length() );
#      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  117|       {
#  118|         std::unique_lock l(lock);
#  119|->       ::write( writeFd, text.data(), text.length() );
#  120|         written = true;
#  121|       }

Error: COMPILER_WARNING (CWE-252): [#def27]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In lambda function
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc:351:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  351 |     ::write( pipeFds[1], text[1].data(), text[1].size() );
#      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  349|     dataSource->sigReadyRead ().connect([&](){
#  350|       // now write more data without returning to the ev loop, and check if we get it all
#  351|->     ::write( pipeFds[1], text[1].data(), text[1].size() );
#  352|       ::write( pipeFds[1], text[2].data(), text[2].size() );
#  353|   

Error: COMPILER_WARNING (CWE-252): [#def28]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc:352:12: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  352 |     ::write( pipeFds[1], text[2].data(), text[2].size() );
#      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  350|       // now write more data without returning to the ev loop, and check if we get it all
#  351|       ::write( pipeFds[1], text[1].data(), text[1].size() );
#  352|->     ::write( pipeFds[1], text[2].data(), text[2].size() );
#  353|   
#  354|       auto ba = dataSource->readLine();

Error: COMPILER_WARNING (CWE-252): [#def29]
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc: scope_hint: In member function ‘void readl::test_method()’
libzypp-17.34.1-build/libzypp-17.34.1/tests/zyppng/io/AsyncDataSource_test.cc:364:10: warning[-Wunused-result]: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’
#  364 |   ::write( pipeFds[1], text[0].data(), text[0].size() );
#      |   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  362|   
#  363|     //write the first line
#  364|->   ::write( pipeFds[1], text[0].data(), text[0].size() );
#  365|   
#  366|     loop->run();

Error: COMPILER_WARNING (CWE-252): [#def30]
libzypp-17.34.1-build/libzypp-17.34.1/tools/zypp-rpm/main.cc: scope_hint: In destructor ‘main(int, char**)::s_lockinfo::~s_lockinfo()’
libzypp-17.34.1-build/libzypp-17.34.1/tools/zypp-rpm/main.cc:246:16: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off64_t)’ declared with attribute ‘warn_unused_result’
#  246 |       ftruncate( fileno (lockFile), 0 );
#      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
#  244|         std::scoped_lock<file_lock> lock(fileLock);
#  245|         clearerr( lockFile );
#  246|->       ftruncate( fileno (lockFile), 0 );
#  247|         fflush( lockFile );
#  248|       }

Error: COMPILER_WARNING (CWE-252): [#def31]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/ExternalProgram.cc: scope_hint: In member function ‘virtual int zypp::ExternalProgram::close()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/ExternalProgram.cc:403:22: warning[-Wunused-result]: ignoring return value of ‘__ssize_t getline(char**, size_t*, FILE*)’ declared with attribute ‘warn_unused_result’
#  403 |               getline( &linebuffer, &linebuffer_size, inputfile );
#      |               ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  401|                 static size_t linebuffer_size = 0;      // static because getline allocs
#  402|                 static char * linebuffer = 0;           // and reallocs if buffer is too small
#  403|->               getline( &linebuffer, &linebuffer_size, inputfile );
#  404|                 // ::feof check is important as select returns
#  405|                 // positive if the file was closed.

Error: COMPILER_WARNING (CWE-252): [#def32]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/ExternalProgram.cc: scope_hint: In constructor ‘zypp::externalprogram::EarlyPipe::EarlyPipe()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/ExternalProgram.cc:511:16: warning[-Wunused-result]: ignoring return value of ‘int pipe2(int*, int)’ declared with attribute ‘warn_unused_result’
#  511 |         ::pipe2( _fds, O_NONBLOCK );
#      |         ~~~~~~~^~~~~~~~~~~~~~~~~~~~
#  509|           _fds[R] = _fds[W] = -1;
#  510|   #ifdef HAVE_PIPE2
#  511|->         ::pipe2( _fds, O_NONBLOCK );
#  512|   #else
#  513|           ::pipe( _fds );

Error: COMPILER_WARNING (CWE-252): [#def33]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/base/String.cc: scope_hint: In function ‘std::string zypp::str::form(const char*, ...)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/base/String.cc:43:16: warning[-Wunused-result]: ignoring return value of ‘int vasprintf(char**, const char*, __va_list_tag*)’ declared with attribute ‘warn_unused_result’
#   43 |       vasprintf( &safe._buf, format, ap );
#      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
#   41|         va_list ap;
#   42|         va_start( ap, format );
#   43|->       vasprintf( &safe._buf, format, ap );
#   44|         va_end( ap );
#   45|   

Error: COMPILER_WARNING (CWE-252): [#def34]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/request.cc:14: included_from: Included from here.
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/base/private/linuxhelpers_p.h: scope_hint: In function ‘std::string zyppng::strerr_cxx(int)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/base/private/linuxhelpers_p.h:16:15: warning[-Wunused-result]: ignoring return value of ‘char* strerror_r(int, char*, size_t)’ declared with attribute ‘warn_unused_result’
#   16 |     strerror_r( err == -1 ? errno : err , strBuf.data(), strBuf.size() );
#      |     ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   14|     inline std::string strerr_cxx ( const int err = -1 ) {
#   15|       ByteArray strBuf( 1024, '\0' );
#   16|->     strerror_r( err == -1 ? errno : err , strBuf.data(), strBuf.size() );
#   17|       return std::string( strBuf.data() );
#   18|     }

Error: COMPILER_WARNING (CWE-252): [#def35]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/io/forkspawnengine.cc: scope_hint: In member function ‘virtual bool zyppng::ForkSpawnEngine::start(const char* const*, int, int, int)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/io/forkspawnengine.cc:338:18: warning[-Wunused-result]: ignoring return value of ‘int ttyname_r(int, char*, size_t)’ declared with attribute ‘warn_unused_result’
#  338 |         ttyname_r( stdout_fd , name, sizeof(name) );
#      |         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc: scope_hint: In instantiation of ‘zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::SyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > > > >, zyppng::SyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > > > >::getExtraKeysInRepomd(ProvideRes&&)::<lambda(std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>  [...]
#/usr/include/c++/14/bits/invoke.h:61:36:   required from ‘constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = zyppng::expected<zypp::PublicKey>; _Fn = zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::SyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::SyncContext> > > > > >, zyppng::SyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::Sync [...]
#   61 |     { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }
#      |              ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   96 |       return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn),
#      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   97 |                                         std::forward<_Args>(__args)...);
#      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#/usr/include/c++/14/functional:120:27:   required from ‘std::invoke_result_t<_Callable, _Args ...> std::invoke(_Callable&&, _Args&& ...) [with _Callable = zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::SyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::SyncContext> > > > > >, zyppng::SyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::SyncContext> > > > > >::getExtr [...]
#  120 |       return std::__invoke(std::forward<_Callable>(__fn),
#      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  121 |                            std::forward<_Args>(__args)...);
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  430 |         return std::invoke( std::forward<Function>(f), std::move(exp.error()) );
#      |                ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/pipelines/expected.h:513:23:   required from ‘auto zyppng::detail::or_else_helper<Callback>::operator()(zyppng::expected<T, E>&&) [with T = zypp::PublicKey; E = std::__exception_ptr::exception_ptr; Callback = zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::SyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncCo [...]
#  513 |         return or_else( std::move(exp), function );
#      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   52 |         std::enable_if_t< !std::is_same_v< void, decltype ( std::declval<Callback>()(std::declval<MsgType>())) > > > //check if the callback has the correct signature:  cb( MsgType )
#      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/pipelines/asyncresult.h:59:78:   required from ‘constexpr const bool zyppng::detail::is_sync_monad_cb_v<zyppng::detail::or_else_helper<zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::SyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > > > >, zyppng::SyncOp<zyppng::expected<std::shared_ptr<zyppng:: [...]
#   59 |     constexpr bool is_sync_monad_cb_v = is_sync_monad_cb<Callback, MsgType>::value;
#      |                                                                              ^~~~~
#  334 |       , std::enable_if_t< detail::is_sync_monad_cb_v< Callback, SyncRes >, int > = 0
#      |                                                                                    ^
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:225:16:   required from ‘zyppng::{anonymous}::DownloadMasterIndexLogic<Executor, OpType>::MaybeAsyncRef<zyppng::expected<typename zyppng::remove_smart_ptr<typename std::conditional<is_async_op_v<OpType>, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > >, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > >::type>::type::ContextType::Pro [...]
#  218 |               return zypp::PublicKey::noThrow(cacheFile)
#      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  219 |                | [ keyid = keyid ]( auto &&key ){
#      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  220 |                    if ( key.fileProvidesKey( keyid ) )
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  221 |                      return make_expected_success( std::forward<decltype(key)>(key) );
#      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  222 |                    else
#      |                    ~~~~
#  223 |                      return expected<zypp::PublicKey>::error( std::make_exception_ptr (zypp::Exception("File does not provide key")));
#      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  224 |                  }
#      |                  ~
#  225 |                | or_else ([ this, file = file, keyid = keyid, cacheFile ] ( auto && ) mutable -> MaybeAsyncRef<expected<zypp::PublicKey>> {
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  226 |                    auto providerRef = _dlContext->zyppContext()->provider();
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  227 |                    return providerRef->provide( _media, file, ProvideFileSpec().setOptional(true) )
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  228 |                       | and_then( ProvideType::copyResultToDest( providerRef, _destdir / file ) )
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  229 |                       | and_then( [this, providerRef, file, keyid , cacheFile = std::move(cacheFile)]( zypp::ManagedFile &&res ) {
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  230 | 
#      |                 
#  231 |                           // remember we downloaded the file
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  232 |                           _dlContext->files().push_back ( std::move(res) );
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  233 | 
#      |                 
#  234 |                           auto key = zypp::PublicKey::noThrow( _dlContext->files().back() );
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  235 |                           if ( not key.fileProvidesKey( keyid ) ) {
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  236 |                             const auto &str = zypp::str::Str() << "Keyhint " << file << " does not contain a key with id " << keyid << ". Skipping it.";
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  237 |                             WAR << str << std::endl;
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~
#  238 |                             return makeReadyResult(expected<zypp::PublicKey>::error( std::make_exception_ptr( zypp::Exception(str)) ));
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  239 |                           }
#      |                           ~
#  240 | 
#      |                 
#  241 |                           // Try to cache it...
#      |                           ~~~~~~~~~~~~~~~~~~~~~
#  242 |                           zypp::filesystem::assert_dir( cacheFile.dirname() );
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  243 |                           return providerRef->copyFile( key.path(), cacheFile )
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  244 |                            | [ key ]( expected<zypp::ManagedFile> res ) mutable {
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  245 |                                if ( res ) {
#      |                                ~~~~~~~~~~~~
#  246 |                                  // do not delete from cache
#      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  247 |                                  res->resetDispose ();
#      |                                  ~~~~~~~~~~~~~~~~~~~~~
#  248 |                                }
#      |                                ~
#  249 |                                return expected<zypp::PublicKey>::success( std::move(key) );
#      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  250 |                              };
#      |                              ~~
#  251 |                         });
#      |                         ~~~
#  252 |                  })
#      |                  ~~
#  143 |             return getExtraKeysInRepomd( std::move(res ) )
#      |                    ^~~~~~~~~~~~~~~~~~~~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:86:34:   required from ‘zyppng::{anonymous}::DownloadMasterIndexLogic<Executor, OpType>::MaybeAsyncRef<zyppng::expected<typename std::conditional<is_async_op_v<OpType>, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > >, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > >::type> > zyppng::{anonymous}::DownloadMasterIndexLogic<Executor,  [...]
#   86 |           | and_then( std::bind( &DownloadMasterIndexLogic::signatureCheck, this, std::placeholders::_1 ) )
#      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  145 |       return Executor( std::forward<Args>(args)... ).execute();
#      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:295:107:   required from here
#  295 |       return SimpleExecutor<DownloadMasterIndexLogic, SyncOp<expected<repo::SyncDownloadContextRef>>>::run( std::move(dl), std::move(mediaHandle), std::move(masterIndex_r) );
#      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  336|   
#  337|           char name[512];
#  338|->         ttyname_r( stdout_fd , name, sizeof(name) );
#  339|           ::close(open(name, O_RDONLY));
#  340|       }
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/io/forkspawnengine.cc:338:18: note: trimmed 7 message(s) with length over 512

Error: COMPILER_WARNING (CWE-195): [#def36]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/rpc/messagestream.cc: scope_hint: In member function ‘bool zyppng::RpcMessageStream::readNextMessage()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/rpc/messagestream.cc:77:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘long unsigned int’
#   77 |       if ( _ioDev->bytesAvailable() >= sizeof( rpc::HeaderSizeType ) ) {
#      |            ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   75|     {
#   76|       if ( _pendingMessageSize == 0 ) {
#   77|->       if ( _ioDev->bytesAvailable() >= sizeof( rpc::HeaderSizeType ) ) {
#   78|           _ioDev->read( reinterpret_cast<char *>( &_pendingMessageSize ),  sizeof( rpc::HeaderSizeType ) );
#   79|         }

Error: COMPILER_WARNING (CWE-252): [#def37]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/thread/wakeup.cpp: scope_hint: In constructor ‘zyppng::Wakeup::Wakeup()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/thread/wakeup.cpp:13:12: warning[-Wunused-result]: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’
#   13 |     ::pipe ( _wakeupPipe );
#      |     ~~~~~~~^~~~~~~~~~~~~~~
#   11|     Wakeup::Wakeup()
#   12|     {
#   13|->     ::pipe ( _wakeupPipe );
#   14|       ::fcntl( _wakeupPipe[0], F_SETFL, O_NONBLOCK );
#   15|     }

Error: COMPILER_WARNING (CWE-195): [#def38]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/ui/progressobserver.cc: scope_hint: In member function ‘void zyppng::ProgressObserverPrivate::onChildChanged()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/ui/progressobserver.cc:88:25: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::shared_ptr<zyppng::ProgressObserver> >::size_type’ {aka ‘long unsigned int’}
#   88 |     for ( auto i = 0; i < _children.size (); i++ ) {
#      |                       ~~^~~~~~~~~~~~~~~~~~~
#   86|       double accumSteps        = _baseSteps;
#   87|   
#   88|->     for ( auto i = 0; i < _children.size (); i++ ) {
#   89|         const auto childPtr   = _children[i].get();
#   90|         const auto &childInfo = _childInfo[i];

Error: COMPILER_WARNING (CWE-195): [#def39]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/curlhelper.cc: scope_hint: In member function ‘CURLMcode internal::CurlPollHelper::handleSocketActions(const std::vector<_GPollFD>&, int)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/curlhelper.cc:471:32: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<_GPollFD>::size_type’ {aka ‘long unsigned int’}
#  471 |   for ( int sock = first; sock < actionsFds.size(); sock++ ) {
#      |                           ~~~~~^~~~~~~~~~~~~~~~~~~
#  469|   CURLMcode internal::CurlPollHelper::handleSocketActions( const std::vector<GPollFD> &actionsFds , int first )
#  470|   {
#  471|->   for ( int sock = first; sock < actionsFds.size(); sock++ ) {
#  472|       const auto &waitFd = actionsFds[sock];
#  473|       if ( waitFd.revents == 0 )

Error: COMPILER_WARNING (CWE-477): [#def40]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/private/curlhelper_p.h:17: included_from: Included from here.
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/curlhelper.cc:12: included_from: Included from here.
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/curlhelper.cc: scope_hint: In function ‘CURLcode internal::setCurlRedirProtocols(CURL*)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/curlhelper.cc:520:37: warning[-Wdeprecated-declarations]: ‘CURLOPT_REDIR_PROTOCOLS’ is deprecated: since 7.85.0. Use CURLOPT_REDIR_PROTOCOLS_STR
#  520 |     return curl_easy_setopt ( curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS );
#      |                                     ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:1762:3: note: declared here
# 1762 |   CURLOPTDEPRECATED(CURLOPT_REDIR_PROTOCOLS, CURLOPTTYPE_LONG, 182,
#      |   ^~~~~~~~~~~~~~~~~
#  518|       return curl_easy_setopt ( curl, CURLOPT_REDIR_PROTOCOLS_STR, "https" );
#  519|     } else {
#  520|->     return curl_easy_setopt ( curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS );
#  521|     }
#  522|   #else

Error: COMPILER_WARNING (CWE-1164): [#def41]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/curlmultiparthandler.cc: scope_hint: At global scope
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/curlmultiparthandler.cc:23:14: warning[-Wunused-function]: ‘CURLcode zyppng::{anonymous}::CurlMultiPartSetoptError::code() const’ defined but not used
#   23 |     CURLcode CurlMultiPartSetoptError::code() const {
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~
#   21|       };
#   22|   
#   23|->     CURLcode CurlMultiPartSetoptError::code() const {
#   24|         return _code;
#   25|       }

Error: COMPILER_WARNING (CWE-195): [#def42]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/curlmultiparthandler.cc: scope_hint: In member function ‘bool zyppng::CurlMultiPartHandler::checkIfRangeChkSumIsValid(Range&)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/curlmultiparthandler.cc:695:46: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘zypp::ByteCount::SizeType’ {aka ‘long long int’}
#  695 |       if ( rng._chksumPad && *rng._chksumPad > bytesHashed ) {
#      |                              ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
#  693|       if ( rng._digest && rng._checksum.size() ) {
#  694|         auto bytesHashed = rng._digest->bytesHashed ();
#  695|->       if ( rng._chksumPad && *rng._chksumPad > bytesHashed ) {
#  696|           MIL_MEDIA << _easyHandle << " " << "Padding the digest to required block size" << std::endl;
#  697|           zypp::ByteArray padding( *rng._chksumPad - bytesHashed, '\0' );

Error: COMPILER_WARNING (CWE-9001): [#def43]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/downloader.cc:9: included_from: Included from here.
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/private/downloader_p.h:89:9: warning[-Wattributes]: ‘zyppng::DownloadPrivate’ declared with greater visibility than its base ‘zyppng::Statemachine<zyppng::DownloadPrivate, zyppng::Download::State, zyppng::Transition<zyppng::InitialState, &zyppng::InitialState::sigTransitionToDetectMetalinkState, zyppng::DetectMetalinkState, true, nullptr>, zyppng::Transition<zyppng::InitialState, &zyppng::InitialState::sigTransitionToDlMetaLinkInfoState, zyppng::DlMetaLinkInfoState, true, nullptr>, zyppng::Transition<zyppng::InitialState, &zyppng::InitialState::sigTran [...]
#   89 |   class DownloadPrivate : public DownloadPrivateBase, public DownloadStatemachine<DownloadPrivate>
#      |         ^~~~~~~~~~~~~~~
#   87|       >;
#   88|   
#   89|->   class DownloadPrivate : public DownloadPrivateBase, public DownloadStatemachine<DownloadPrivate>
#   90|     {
#   91|     public:
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/private/downloader_p.h:89:9: note: trimmed 1 message(s) with length over 512

Error: COMPILER_WARNING (CWE-195): [#def44]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc: scope_hint: In member function ‘std::vector<zyppng::DownloadPrivateBase::Block> zyppng::RangeDownloaderBaseState::getNextBlocks(const std::string&)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc:376:47: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘zypp::ByteCount::SizeType’ {aka ‘long long int’}
#  376 |     while ( _ranges.size() && accumulatedSize < prefSize ) {
#      |                               ~~~~~~~~~~~~~~~~^~~~~~~~~~
#  374|   
#  375|       std::optional<size_t> lastBlockEnd;
#  376|->     while ( _ranges.size() && accumulatedSize < prefSize ) {
#  377|         const auto &r = _ranges.front();
#  378|   

Error: COMPILER_WARNING (CWE-195): [#def45]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc: scope_hint: In member function ‘std::vector<zyppng::DownloadPrivateBase::Block> zyppng::RangeDownloaderBaseState::getNextFailedBlocks(const std::string&)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/ng/network/private/downloaderstates/rangedownloader_p.cc:424:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘zypp::ByteCount::SizeType’ {aka ‘long long int’}
#  424 |       if ( accumulatedSize >= prefSize )
#      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~
#  422|         fblks.back()._retryCount += 1;
#  423|   
#  424|->       if ( accumulatedSize >= prefSize )
#  425|           break;
#  426|       }

Error: COMPILER_WARNING (CWE-195): [#def46]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/parser/mediablocklist.cc: scope_hint: In member function ‘void zypp::media::MediaBlockList::reuseBlocks(FILE*, const std::string&)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp-curl/parser/mediablocklist.cc:499:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
#  499 |         while ((2 << (i - 1)) > nblks && i > 4)
#      |                ~~~~~~~~~~~~~~~^~~~~~~
#  497|   
#  498|           /* Try hash size of 2^i; step down the value of i until we find a good size */
#  499|->         while ((2 << (i - 1)) > nblks && i > 4)
#  500|             i--;
#  501|   

Error: COMPILER_WARNING: [#def47]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:75:11: warning[-Wodr]: type ‘struct Mount’ violates the C++ One Definition Rule
#   75 |     class Mount
#      |           ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:75:11: note: a different type is defined in another translation unit
#   75 |     class Mount
#      |           ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:154:27: note: the first difference of corresponding definitions is field ‘_bincompat1’
#  154 |         ExternalProgram * _bincompat1;
#      |                           ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:75:11: note: a type with different number of fields is defined in another translation unit
#   75 |     class Mount
#      |           ^
#   73|        * @short Interface to the mount program
#   74|        */
#   75|->     class Mount
#   76|       {
#   77|       public:

Error: COMPILER_WARNING (CWE-704): [#def48]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:95:9: warning[-Wlto-type-mismatch]: type of ‘__ct_comp ’ does not match original declaration
#   95 |         Mount();
#      |         ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:56: note: ‘__ct_comp ’ was previously declared here
#   56 | Mount::Mount()
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:56: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
#   93|           * Create an new instance.
#   94|           */
#   95|->         Mount();
#   96|   
#   97|           /**

Error: COMPILER_WARNING (CWE-704): [#def49]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:100:9: warning[-Wlto-type-mismatch]: type of ‘__dt_comp ’ does not match original declaration
#  100 |         ~Mount();
#      |         ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:59: note: ‘__dt_comp ’ was previously declared here
#   59 | Mount::~Mount()
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:59: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
#   98|           * Clean up.
#   99|           */
#  100|->         ~Mount();
#  101|   
#  102|           /**

Error: COMPILER_WARNING (CWE-704): [#def50]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:115:14: warning[-Wlto-type-mismatch]: type of ‘mount’ does not match original declaration
#  115 |         void mount ( const std::string& source,
#      |              ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:62: note: ‘mount’ was previously declared here
#   62 | void Mount::mount( const std::string & source,
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:62: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
#  113|           */
#  114|   
#  115|->         void mount ( const std::string& source,
#  116|                           const std::string& target,
#  117|                           const std::string& filesystem,

Error: COMPILER_WARNING (CWE-704): [#def51]
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.h:128:14: warning[-Wlto-type-mismatch]: type of ‘umount’ does not match original declaration
#  128 |         void umount (const std::string& path);
#      |              ^
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:117: note: ‘umount’ was previously declared here
#  117 | void Mount::umount( const std::string & path )
libzypp-17.34.1-build/libzypp-17.34.1/zypp-media/mount.cc:117: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
#  126|           *
#  127|            * */
#  128|->         void umount (const std::string& path);
#  129|   
#  130|       public:

Error: COMPILER_WARNING: [#def52]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZConfig.cc:309:2: warning[-Wcpp]: #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS
#  309 | #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS
#      |  ^~~~~~~
#  307|         }
#  308|         MIL << "Default text locale is '" << ret << "'" << endl;
#  309|-> #warning HACK AROUND BOOST_TEST_CATCH_SYSTEM_ERRORS
#  310|         setenv( "BOOST_TEST_CATCH_SYSTEM_ERRORS", "no", 1 );
#  311|         return ret;

Error: COMPILER_WARNING (CWE-252): [#def53]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZYppFactory.cc: scope_hint: In destructor ‘zypp::ZYppGlobalLock::~ZYppGlobalLock()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZYppFactory.cc:129:22: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off64_t)’ declared with attribute ‘warn_unused_result’
#  129 |             ftruncate( fileno(_zyppLockFile), 0 );
#      |             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  127|               // Truncate the file rather than deleting it. Other processes may
#  128|               // still use it to synchronsize.
#  129|->             ftruncate( fileno(_zyppLockFile), 0 );
#  130|             }
#  131|             MIL << "Cleaned lock file. (" << getpid() << ")" << std::endl;

Error: COMPILER_WARNING (CWE-252): [#def54]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZYppFactory.cc: scope_hint: In member function ‘pid_t zypp::ZYppGlobalLock::readLockFile()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZYppFactory.cc:236:13: warning[-Wunused-result]: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’
#  236 |       fscanf( _zyppLockFile, "%ld", &readpid );
#      |       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  234|         fseek( _zyppLockFile, 0, SEEK_SET );
#  235|         long readpid = 0;
#  236|->       fscanf( _zyppLockFile, "%ld", &readpid );
#  237|         MIL << "read: Lockfile " << _zyppLockFilePath << " has pid " << readpid << " (our pid: " << getpid() << ") "<< std::endl;
#  238|         return (pid_t)readpid;

Error: COMPILER_WARNING (CWE-252): [#def55]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZYppFactory.cc: scope_hint: In member function ‘void zypp::ZYppGlobalLock::writeLockFile()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ZYppFactory.cc:245:16: warning[-Wunused-result]: ignoring return value of ‘int ftruncate(int, __off64_t)’ declared with attribute ‘warn_unused_result’
#  245 |       ftruncate( fileno(_zyppLockFile), 0 );
#      |       ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  243|         clearerr( _zyppLockFile );
#  244|         fseek( _zyppLockFile, 0, SEEK_SET );
#  245|->       ftruncate( fileno(_zyppLockFile), 0 );
#  246|         fprintf(_zyppLockFile, "%ld\n", (long)getpid() );
#  247|         fflush( _zyppLockFile );

Error: COMPILER_WARNING (CWE-195): [#def56]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘virtual size_t zypp::media::multifetchworker::headerfunction(char*, size_t)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/media/MediaMultiCurl.cc:432:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘const long unsigned int’ and ‘off_t’ {aka ‘long int’}
#  432 |   if ( repSize && *repSize != _request->_filesize  ) {
#      |                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
#  430|   
#  431|     const auto &repSize = _multiByteHandler->reportedFileSize ();
#  432|->   if ( repSize && *repSize != _request->_filesize  ) {
#  433|         XXX << "#" << _workerno << ": filesize mismatch" << endl;
#  434|         _state = WORKER_BROKEN;

Error: COMPILER_WARNING (CWE-195): [#def57]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/media/MediaMultiCurl.cc: scope_hint: In member function ‘void zypp::media::multifetchworker::nextjob()’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/media/MediaMultiCurl.cc:881:51: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘off_t’ {aka ‘long int’} and ‘std::vector<zypp::media::Stripe>::size_type’ {aka ‘long unsigned int’}
#  881 |   if ( _request->_stealing || _request->_stripeNo >= _request->_requiredStripes.size() ) {
#      |                               ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  879|   
#  880|     // claim next stripe for us, or steal if there nothing left to claim
#  881|->   if ( _request->_stealing || _request->_stripeNo >= _request->_requiredStripes.size() ) {
#  882|       stealjob();
#  883|       return;

Error: COMPILER_WARNING (CWE-477): [#def58]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/misc/DefaultLoadSystem.cc: scope_hint: In function ‘void zypp::misc::defaultLoadSystem(const zypp::filesystem::Pathname&, LoadSystemFlags)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/misc/DefaultLoadSystem.cc:51:37: warning[-Wdeprecated-declarations]: ‘void zypp::zypp_readonly_hack::IWantIt()’ is deprecated
#   51 |         zypp_readonly_hack::IWantIt ();
#      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
libzypp-17.34.1-build/libzypp-17.34.1/zypp/zypp_detail/ZYppReadOnlyHack.h:26:17: note: declared here
#   26 |     extern void IWantIt() ZYPP_DEPRECATED;
#      |                 ^~~~~~~
#   49|   
#   50|         if ( flags_r.testFlag( LS_READONLY ) )
#   51|->         zypp_readonly_hack::IWantIt ();
#   52|   
#   53|         sat::Pool satpool( sat::Pool::instance() );

Error: COMPILER_WARNING: [#def59]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:236:41: warning[-Wdangling-reference]: possibly dangling reference to a temporary
#  236 |                             const auto &str = zypp::str::Str() << "Keyhint " << file << " does not contain a key with id " << keyid << ". Skipping it.";
#      |                                         ^~~
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:236:133: note: the temporary was destroyed at the end of the full expression ‘(&(&(&(& zypp::str::Str().zypp::str::Str::operator<< <const char (&)[9]>("Keyhint "))->zypp::str::Str::operator<< <const std::__cxx11::basic_string<char>&>(file))->zypp::str::Str::operator<< <const char (&)[33]>(" does not contain a key with id "))->zypp::str::Str::operator<< <const std::__cxx11::basic_string<char>&>(keyid))->zypp::str::Str::operator<< <const char (&)[15]>(". Skipping it.")’
#  236 |                             const auto &str = zypp::str::Str() << "Keyhint " << file << " does not contain a key with id " << keyid << ". Skipping it.";
#      |                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc: scope_hint: In instantiation of ‘zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::AsyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > > > > >, zyppng::AsyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > > > > >::getExtraKeysInRepomd(ProvideRes&&)::<lambda(std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >)>::< [...]
#/usr/include/c++/14/bits/invoke.h:61:36:   required from ‘constexpr _Res std::__invoke_impl(__invoke_other, _Fn&&, _Args&& ...) [with _Res = shared_ptr<zyppng::AsyncOp<zyppng::expected<zypp::PublicKey> > >; _Fn = zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::AsyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::Context> > > > > >, zyppng::AsyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadCo [...]
#   61 |     { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }
#      |              ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   96 |       return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn),
#      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   97 |                                         std::forward<_Args>(__args)...);
#      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#/usr/include/c++/14/functional:120:27:   required from ‘std::invoke_result_t<_Callable, _Args ...> std::invoke(_Callable&&, _Args&& ...) [with _Callable = zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::AsyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::Context> > > > > >, zyppng::AsyncOp<zyppng::expected<shared_ptr<zyppng::repo::DownloadContext<shared_ptr<zyppng::Context> > > > > >::getExtraKeysI [...]
#  120 |       return std::__invoke(std::forward<_Callable>(__fn),
#      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  121 |                            std::forward<_Args>(__args)...);
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  430 |         return std::invoke( std::forward<Function>(f), std::move(exp.error()) );
#      |                ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/pipelines/expected.h:513:23:   required from ‘auto zyppng::detail::or_else_helper<Callback>::operator()(zyppng::expected<T, E>&&) [with T = zypp::PublicKey; E = std::__exception_ptr::exception_ptr; Callback = zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::AsyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Conte [...]
#  513 |         return or_else( std::move(exp), function );
#      |                ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   52 |         std::enable_if_t< !std::is_same_v< void, decltype ( std::declval<Callback>()(std::declval<MsgType>())) > > > //check if the callback has the correct signature:  cb( MsgType )
#      |                                                             ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp-core/zyppng/pipelines/asyncresult.h:59:78:   required from ‘constexpr const bool zyppng::detail::is_sync_monad_cb_v<zyppng::detail::or_else_helper<zyppng::{anonymous}::DownloadMasterIndexLogic<zyppng::SimpleExecutor<zyppng::{anonymous}::DownloadMasterIndexLogic, zyppng::AsyncOp<zyppng::expected<std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > > > > >, zyppng::AsyncOp<zyppng::expected<std::shared_ptr<zyppng::re [...]
#   59 |     constexpr bool is_sync_monad_cb_v = is_sync_monad_cb<Callback, MsgType>::value;
#      |                                                                              ^~~~~
#  334 |       , std::enable_if_t< detail::is_sync_monad_cb_v< Callback, SyncRes >, int > = 0
#      |                                                                                    ^
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:225:16:   required from ‘zyppng::{anonymous}::DownloadMasterIndexLogic<Executor, OpType>::MaybeAsyncRef<zyppng::expected<typename zyppng::remove_smart_ptr<typename std::conditional<is_async_op_v<OpType>, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > >, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > >::type>::type::ContextType::Pro [...]
#  218 |               return zypp::PublicKey::noThrow(cacheFile)
#      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  219 |                | [ keyid = keyid ]( auto &&key ){
#      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  220 |                    if ( key.fileProvidesKey( keyid ) )
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  221 |                      return make_expected_success( std::forward<decltype(key)>(key) );
#      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  222 |                    else
#      |                    ~~~~
#  223 |                      return expected<zypp::PublicKey>::error( std::make_exception_ptr (zypp::Exception("File does not provide key")));
#      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  224 |                  }
#      |                  ~
#  225 |                | or_else ([ this, file = file, keyid = keyid, cacheFile ] ( auto && ) mutable -> MaybeAsyncRef<expected<zypp::PublicKey>> {
#      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  226 |                    auto providerRef = _dlContext->zyppContext()->provider();
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  227 |                    return providerRef->provide( _media, file, ProvideFileSpec().setOptional(true) )
#      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  228 |                       | and_then( ProvideType::copyResultToDest( providerRef, _destdir / file ) )
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  229 |                       | and_then( [this, providerRef, file, keyid , cacheFile = std::move(cacheFile)]( zypp::ManagedFile &&res ) {
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  230 | 
#      |                 
#  231 |                           // remember we downloaded the file
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  232 |                           _dlContext->files().push_back ( std::move(res) );
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  233 | 
#      |                 
#  234 |                           auto key = zypp::PublicKey::noThrow( _dlContext->files().back() );
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  235 |                           if ( not key.fileProvidesKey( keyid ) ) {
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  236 |                             const auto &str = zypp::str::Str() << "Keyhint " << file << " does not contain a key with id " << keyid << ". Skipping it.";
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  237 |                             WAR << str << std::endl;
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~
#  238 |                             return makeReadyResult(expected<zypp::PublicKey>::error( std::make_exception_ptr( zypp::Exception(str)) ));
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  239 |                           }
#      |                           ~
#  240 | 
#      |                 
#  241 |                           // Try to cache it...
#      |                           ~~~~~~~~~~~~~~~~~~~~~
#  242 |                           zypp::filesystem::assert_dir( cacheFile.dirname() );
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  243 |                           return providerRef->copyFile( key.path(), cacheFile )
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  244 |                            | [ key ]( expected<zypp::ManagedFile> res ) mutable {
#      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  245 |                                if ( res ) {
#      |                                ~~~~~~~~~~~~
#  246 |                                  // do not delete from cache
#      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  247 |                                  res->resetDispose ();
#      |                                  ~~~~~~~~~~~~~~~~~~~~~
#  248 |                                }
#      |                                ~
#  249 |                                return expected<zypp::PublicKey>::success( std::move(key) );
#      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  250 |                              };
#      |                              ~~
#  251 |                         });
#      |                         ~~~
#  252 |                  })
#      |                  ~~
#  143 |             return getExtraKeysInRepomd( std::move(res ) )
#      |                    ^~~~~~~~~~~~~~~~~~~~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:86:34:   required from ‘zyppng::{anonymous}::DownloadMasterIndexLogic<Executor, OpType>::MaybeAsyncRef<zyppng::expected<typename std::conditional<is_async_op_v<OpType>, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > >, std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::SyncContext> > > >::type> > zyppng::{anonymous}::DownloadMasterIndexLogic<Executor,  [...]
#   86 |           | and_then( std::bind( &DownloadMasterIndexLogic::signatureCheck, this, std::placeholders::_1 ) )
#      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  169 |       this->_innerPipeline = static_cast<Executor*>(this)->execute();
#      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
#/builddir/build/BUILD/libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/workflows/logichelpers.h:139:23:   required from ‘static std::enable_if_t<((bool)is_async_op_v<FOpType>), std::shared_ptr<zyppng::AsyncOp<typename Callback::value_type> > > zyppng::LogicBase<Executor, OpType>::run(Args&& ...) [with Args = {std::shared_ptr<zyppng::repo::DownloadContext<std::shared_ptr<zyppng::Context> > >, zyppng::ProvideMediaHandle, zypp::filesystem::Pathname}; FOpType = zyppng::AsyncOp<zyppng::expected<std::shared_ptr<zy [...]
#  139 |       op->asyncExecute();
#      |       ~~~~~~~~~~~~~~~~^~
#  290 |       return SimpleExecutor<DownloadMasterIndexLogic, AsyncOp<expected<repo::AsyncDownloadContextRef>>>::run( std::move(dl), std::move(mediaHandle), std::move(masterIndex_r) );
#      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  234|                             auto key = zypp::PublicKey::noThrow( _dlContext->files().back() );
#  235|                             if ( not key.fileProvidesKey( keyid ) ) {
#  236|->                             const auto &str = zypp::str::Str() << "Keyhint " << file << " does not contain a key with id " << keyid << ". Skipping it.";
#  237|                               WAR << str << std::endl;
#  238|                               return makeReadyResult(expected<zypp::PublicKey>::error( std::make_exception_ptr( zypp::Exception(str)) ));
libzypp-17.34.1-build/libzypp-17.34.1/zypp/ng/repo/workflows/repodownloaderwf.cc:236:41: note: trimmed 8 message(s) with length over 512

Error: COMPILER_WARNING (CWE-563): [#def60]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/target/TargetImpl.cc: scope_hint: In member function ‘zypp::ZYppCommitResult zypp::target::TargetImpl::commit(zypp::ResPool, const zypp::ZYppCommitPolicy&)’
libzypp-17.34.1-build/libzypp-17.34.1/zypp/target/TargetImpl.cc:1454:12: warning[-Wunused-variable]: unused variable ‘singleTransMode’
# 1454 |       bool singleTransMode = policy_r.singleTransModeEnabled();
#      |            ^~~~~~~~~~~~~~~
# 1452|         ///////////////////////////////////////////////////////////////////
# 1453|   
# 1454|->       bool singleTransMode = policy_r.singleTransModeEnabled();
# 1455|   
# 1456|         DBG << "commit log file is set to: " << HistoryLog::fname() << endl;

Error: COMPILER_WARNING: [#def61]
libzypp-17.34.1-build/libzypp-17.34.1/zypp/misc/DefaultLoadSystem.cc:20: included_from: Included from here.
libzypp-17.34.1-build/libzypp-17.34.1/zypp/zypp_detail/ZYppReadOnlyHack.h:15:2: warning[-Wcpp]: #warning ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H
#   15 | #warning ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H
#      |  ^~~~~~~
#   13|   #ifndef ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H
#   14|   #define ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H
#   15|-> #warning ZYPP_ZYPP_DETAIL_ZYPPREADONLYHACK_H
#   16|   
#   17|   #include <zypp/APIConfig.h>

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-103.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibzypp-17.34.1-4.fc42
store-results-to/tmp/tmpl7io3h4r/libzypp-17.34.1-4.fc42.tar.xz
time-created2024-11-13 02:06:10
time-finished2024-11-13 02:21:11
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpl7io3h4r/libzypp-17.34.1-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpl7io3h4r/libzypp-17.34.1-4.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9