Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/common/run_operation.cpp:37:42: warning[-Wunused-variable]: unused variable ‘data_generator’
#   37 |     const gz_generator::InflateGenerator data_generator;
#      |                                          ^~~~~~~~~~~~~~
#   35|       test_factor.type = NO_ERR_FIXED_BLOCK;
#   36|   
#   37|->     const gz_generator::InflateGenerator data_generator;
#   38|   
#   39|       generator_status = gz_generator::InflateGenerator::generate(encoded_data_buffer,

Error: COMPILER_WARNING (CWE-563): [#def2]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/algorithmic_tests/low_level_api/dictionary_utility_functions.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_c_api_dictionary_get_existing_dictionary_size_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/algorithmic_tests/low_level_api/dictionary_utility_functions.cpp:19:32: warning[-Wunused-variable]: unused variable ‘hw_compr_level’
#   19 |     const hw_compression_level hw_compr_level = hw_compression_level::HW_NONE;
#      |                                ^~~~~~~~~~~~~~
#   17|   QPL_LOW_LEVEL_API_ALGORITHMIC_TEST(dictionary, get_existing_dictionary_size) {
#   18|   
#   19|->     const hw_compression_level hw_compr_level = hw_compression_level::HW_NONE;
#   20|   
#   21|       for (auto &dataset: util::TestEnvironment::GetInstance().GetAlgorithmicDataset().get_data()) {

Error: COMPILER_WARNING (CWE-563): [#def3]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/algorithmic_tests/low_level_api/inflate.cpp: scope_hint: In member function ‘void qpl::test::Inflate::SetSourceFromGenerator(TestType)’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/algorithmic_tests/low_level_api/inflate.cpp:145:46: warning[-Wunused-variable]: unused variable ‘data_generator’
#  145 |         const gz_generator::InflateGenerator data_generator;
#      |                                              ^~~~~~~~~~~~~~
#  143|           }
#  144|   
#  145|->         const gz_generator::InflateGenerator data_generator;
#  146|   
#  147|           generator_status = gz_generator::InflateGenerator::generate(encoded_data_buffer,

Error: COMPILER_WARNING (CWE-563): [#def4]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/algorithmic_tests/low_level_api/select.cpp: scope_hint: In member function ‘void qpl::test::ta_c_api_select_force_array_output_modification_Test::RunSingleIteration()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/algorithmic_tests/low_level_api/select.cpp:144:34: warning[-Wunused-variable]: unused variable ‘byte_bit_length’
#  144 |         constexpr const uint32_t byte_bit_length            = 8;
#      |                                  ^~~~~~~~~~~~~~~
#  142|           constexpr const uint32_t input_vector_width         = 8;
#  143|           constexpr const uint32_t select_output_vector_width = 1;
#  144|->         constexpr const uint32_t byte_bit_length            = 8;
#  145|           constexpr const uint64_t reference                  = 16045690984062438142ULL;  // Reference value for select
#  146|   

Error: COMPILER_WARNING (CWE-563): [#def5]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/negative_tests/low_level_api/inflate_errors.cpp: scope_hint: In member function ‘qpl_status qpl::test::InflateErrorsTest::InflateRunBrokenStream(TestType)’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/negative_tests/low_level_api/inflate_errors.cpp:37:50: warning[-Wunused-variable]: unused variable ‘data_generator’
#   37 |             const gz_generator::InflateGenerator data_generator;
#      |                                                  ^~~~~~~~~~~~~~
#   35|               test_factor.type = test_type;
#   36|   
#   37|->             const gz_generator::InflateGenerator data_generator;
#   38|   
#   39|               generator_status = gz_generator::InflateGenerator::generate(encoded_data_buffer,

Error: COMPILER_WARNING (CWE-195): [#def6]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/negative_tests/low_level_api/submission_errors.cpp: scope_hint: In member function ‘virtual void qpl::test::tn_c_api_submission_work_queues_are_busy_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/negative_tests/low_level_api/submission_errors.cpp:69:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘const uint32_t’ {aka ‘const unsigned int’}
#   69 |     for(job_index = 0; job_index < number_of_jobs; job_index++) {
#      |                        ~~~~~~~~~~^~~~~~~~~~~~~~~~
#   67|   
#   68|       int job_index;
#   69|->     for(job_index = 0; job_index < number_of_jobs; job_index++) {
#   70|           job_buffer[job_index] = std::make_unique<uint8_t[]>(size);
#   71|           qpl_job *job = reinterpret_cast<qpl_job *>(job_buffer[job_index].get());

Error: COMPILER_WARNING (CWE-563): [#def7]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_expand.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_unit_api_qplc_expand_8u_base_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_expand.cpp:121:65: warning[-Wunused-variable]: unused variable ‘buffer_src’
#  121 |     const std::array<uint8_t, TEST_BUFFER_SIZE*sizeof(uint8_t)> buffer_src{};
#      |                                                                 ^~~~~~~~~~
#  119|   using randomizer = qpl::test::random;
#  120|   QPL_UNIT_API_ALGORITHMIC_TEST(qplc_expand_8u, base) {
#  121|->     const std::array<uint8_t, TEST_BUFFER_SIZE*sizeof(uint8_t)> buffer_src{};
#  122|       std::array < uint8_t, TEST_BUFFER_SIZE > buffer_mask{};
#  123|       std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint8_t)> source{};

Error: COMPILER_WARNING (CWE-563): [#def8]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_expand.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_unit_api_qplc_expand_16u_base_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_expand.cpp:240:68: warning[-Wunused-variable]: unused variable ‘buffer_src’
#  240 |     const std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint16_t)> buffer_src{};
#      |                                                                    ^~~~~~~~~~
#  238|   
#  239|   QPL_UNIT_API_ALGORITHMIC_TEST(qplc_expand_16u, base) {
#  240|->     const std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint16_t)> buffer_src{};
#  241|       std::array < uint8_t, TEST_BUFFER_SIZE > buffer_mask{};
#  242|       std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint16_t)> source{};

Error: COMPILER_WARNING (CWE-563): [#def9]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_expand.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_unit_api_qplc_expand_32u_base_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_expand.cpp:358:68: warning[-Wunused-variable]: unused variable ‘buffer_src’
#  358 |     const std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint32_t)> buffer_src{};
#      |                                                                    ^~~~~~~~~~
#  356|   
#  357|   QPL_UNIT_API_ALGORITHMIC_TEST(qplc_expand_32u, base) {
#  358|->     const std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint32_t)> buffer_src{};
#  359|       std::array < uint8_t, TEST_BUFFER_SIZE > buffer_mask{};
#  360|       std::array<uint8_t, TEST_BUFFER_SIZE * sizeof(uint32_t)> source{};

Error: COMPILER_WARNING (CWE-563): [#def10]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_unit_api_qplc_unpack_prle_8u_base_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:552:36: warning[-Wunused-variable]: unused variable ‘index’
#  552 |                     const uint32_t index = 0U;
#      |                                    ^~~~~
#  550|                       uint32_t* p_value = (uint32_t*)value.data();
#  551|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  552|->                     const uint32_t index = 0U;
#  553|                       const uint32_t ref_index = 0U;
#  554|   

Error: COMPILER_WARNING (CWE-563): [#def11]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:553:36: warning[-Wunused-variable]: unused variable ‘ref_index’
#  553 |                     const uint32_t ref_index = 0U;
#      |                                    ^~~~~~~~~
#  551|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  552|                       const uint32_t index = 0U;
#  553|->                     const uint32_t ref_index = 0U;
#  554|   
#  555|                       int32_t count_current = count;

Error: COMPILER_WARNING (CWE-563): [#def12]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:594:36: warning[-Wunused-variable]: unused variable ‘index’
#  594 |                     const uint32_t index = 0U;
#      |                                    ^~~~~
#  592|                       uint32_t* p_value = (uint32_t*)value.data();
#  593|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  594|->                     const uint32_t index = 0U;
#  595|                       const uint32_t ref_index = 0U;
#  596|   

Error: COMPILER_WARNING (CWE-563): [#def13]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:595:36: warning[-Wunused-variable]: unused variable ‘ref_index’
#  595 |                     const uint32_t ref_index = 0U;
#      |                                    ^~~~~~~~~
#  593|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  594|                       const uint32_t index = 0U;
#  595|->                     const uint32_t ref_index = 0U;
#  596|   
#  597|                       int32_t count_current = count;

Error: COMPILER_WARNING (CWE-563): [#def14]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_unit_api_qplc_unpack_prle_16u_base_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:646:36: warning[-Wunused-variable]: unused variable ‘index’
#  646 |                     const uint32_t index = 0U;
#      |                                    ^~~~~
#  644|                       uint32_t* p_value = (uint32_t*)value.data();
#  645|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  646|->                     const uint32_t index = 0U;
#  647|                       const uint32_t ref_index = 0U;
#  648|   

Error: COMPILER_WARNING (CWE-563): [#def15]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:647:36: warning[-Wunused-variable]: unused variable ‘ref_index’
#  647 |                     const uint32_t ref_index = 0U;
#      |                                    ^~~~~~~~~
#  645|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  646|                       const uint32_t index = 0U;
#  647|->                     const uint32_t ref_index = 0U;
#  648|   
#  649|                       int32_t count_current = count;

Error: COMPILER_WARNING (CWE-563): [#def16]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:688:36: warning[-Wunused-variable]: unused variable ‘index’
#  688 |                     const uint32_t index = 0U;
#      |                                    ^~~~~
#  686|                       uint32_t* p_value = (uint32_t*)value.data();
#  687|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  688|->                     const uint32_t index = 0U;
#  689|                       const uint32_t ref_index = 0U;
#  690|   

Error: COMPILER_WARNING (CWE-563): [#def17]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:689:36: warning[-Wunused-variable]: unused variable ‘ref_index’
#  689 |                     const uint32_t ref_index = 0U;
#      |                                    ^~~~~~~~~
#  687|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  688|                       const uint32_t index = 0U;
#  689|->                     const uint32_t ref_index = 0U;
#  690|   
#  691|                       int32_t count_current = count;

Error: COMPILER_WARNING (CWE-563): [#def18]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp: scope_hint: In member function ‘virtual void qpl::test::ta_unit_api_qplc_unpack_prle_32u_base_Test::TestBody()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:742:36: warning[-Wunused-variable]: unused variable ‘index’
#  742 |                     const uint32_t index = 0U;
#      |                                    ^~~~~
#  740|                       uint32_t* p_value = (uint32_t*)value.data();
#  741|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  742|->                     const uint32_t index = 0U;
#  743|                       const uint32_t ref_index = 0U;
#  744|   

Error: COMPILER_WARNING (CWE-563): [#def19]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:743:36: warning[-Wunused-variable]: unused variable ‘ref_index’
#  743 |                     const uint32_t ref_index = 0U;
#      |                                    ^~~~~~~~~
#  741|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  742|                       const uint32_t index = 0U;
#  743|->                     const uint32_t ref_index = 0U;
#  744|   
#  745|                       int32_t count_current = count;

Error: COMPILER_WARNING (CWE-563): [#def20]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:785:36: warning[-Wunused-variable]: unused variable ‘index’
#  785 |                     const uint32_t index = 0U;
#      |                                    ^~~~~
#  783|                       uint32_t* p_value = (uint32_t*)value.data();
#  784|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  785|->                     const uint32_t index = 0U;
#  786|                       const uint32_t ref_index = 0U;
#  787|   

Error: COMPILER_WARNING (CWE-563): [#def21]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/unit_tests/algorithmic/core_unpack_prle.cpp:786:36: warning[-Wunused-variable]: unused variable ‘ref_index’
#  786 |                     const uint32_t ref_index = 0U;
#      |                                    ^~~~~~~~~
#  784|                       uint32_t* p_ref_value = (uint32_t*)ref_value.data();
#  785|                       const uint32_t index = 0U;
#  786|->                     const uint32_t ref_index = 0U;
#  787|   
#  788|                       int32_t count_current = count;

Error: COMPILER_WARNING (CWE-195): [#def22]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/tests/functional/negative_tests/low_level_api/submission_errors.cpp:12: included_from: Included from here.
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/common/dispatcher_checks.hpp: scope_hint: In function ‘bool qpl::test::are_workqueues_available(int32_t)’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/common/dispatcher_checks.hpp:25:56: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’}
#   25 |             if(dispatcher.device(device_idx).numa_id() != numa_id){
#      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
#   23|       if (dispatcher.is_hw_support()) {
#   24|           for (size_t device_idx = 0; device_idx < dispatcher.device_count(); device_idx++) {
#   25|->             if(dispatcher.device(device_idx).numa_id() != numa_id){
#   26|                   continue;
#   27|               }

Error: COMPILER_WARNING (CWE-195): [#def23]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/common/dispatcher_checks.hpp: scope_hint: In function ‘uint64_t qpl::test::max_descriptor_submissions(int32_t)’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/common/dispatcher_checks.hpp:58:56: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’}
#   58 |             if(dispatcher.device(device_idx).numa_id() != numa_id){
#      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
#   56|       if (dispatcher.is_hw_support()) {
#   57|           for (size_t device_idx = 0; device_idx < dispatcher.device_count(); device_idx++) {
#   58|->             if(dispatcher.device(device_idx).numa_id() != numa_id){
#   59|                   continue;
#   60|               }

Error: COMPILER_WARNING (CWE-569): [#def24]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/common/source_provider.cpp: scope_hint: In member function ‘std::vector<unsigned char> qpl::test::source_provider::generate_expand_rle_prle_stream()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/common/source_provider.cpp:293:57: warning[-Wparentheses]: suggest parentheses around ‘&&’ within ‘||’
#  293 |             if (elements_remain >= PRLE_OCTA_GROUP_SIZE && uint32_t(num_generator) % 2 == 0U ||
#      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  291|           while (elements_remain > 0U)
#  292|           {
#  293|->             if (elements_remain >= PRLE_OCTA_GROUP_SIZE && uint32_t(num_generator) % 2 == 0U ||
#  294|                   (accumulate_values && elements_remain >= PRLE_OCTA_GROUP_SIZE))
#  295|               {

Error: COMPILER_WARNING (CWE-9001): [#def25]
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/generators/random_generator.cpp: scope_hint: In member function ‘double qpl::test::random_base::gen()’
intel-qpl-1.6.0-build/qpl-1.6.0/tools/utils/generators/random_generator.cpp:44:30: warning[-Wstrict-aliasing]: dereferencing type-punned pointer will break strict-aliasing rules
#   44 |    *((uint32_t*)(&cnst2in31) + 0U) = 0x00000000;
#      |     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
#   42|   {
#   43|      double cnst2in31 = NAN;// exact number for 0.4656613e-9 == 2^-31
#   44|->    *((uint32_t*)(&cnst2in31) + 0U) = 0x00000000;
#   45|      *((uint32_t*)(&cnst2in31) + 1U) = 0x3e000000;
#   46|   

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
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-189.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameintel-qpl-1.5.0-2.fc41
diffbase-store-results-to/tmp/tmpm1c14ocg/intel-qpl-1.5.0-2.fc41.tar.xz
diffbase-time-created2024-11-13 00:16:52
diffbase-time-finished2024-11-13 00:20:55
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpm1c14ocg/intel-qpl-1.5.0-2.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpm1c14ocg/intel-qpl-1.5.0-2.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-189.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameintel-qpl-1.6.0-1.fc42
store-results-to/tmp/tmp1919rs9u/intel-qpl-1.6.0-1.fc42.tar.xz
time-created2024-11-13 00:21:19
time-finished2024-11-13 00:25:31
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp1919rs9u/intel-qpl-1.6.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp1919rs9u/intel-qpl-1.6.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9