openjph-0.21.2-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-190): [#def1]
OpenJPH-0.21.2/src/core/transform/ojph_colour.cpp:325: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
#  323|         float fl_low_lim = (float)neg_limit; // val >= lower
#  324|         si32 s32_up_lim = INT_MAX >> (32 - bit_depth);
#  325|->       si32 s32_low_lim = INT_MIN >> (32 - bit_depth);
#  326|   
#  327|         if (is_signed)

Error: CPPCHECK_WARNING (CWE-190): [#def2]
OpenJPH-0.21.2/src/core/transform/ojph_colour_avx2.cpp:291: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
#  289|         __m256 fl_low_lim = _mm256_set1_ps((float)neg_limit);  // val >= lower
#  290|         __m256i s32_up_lim = _mm256_set1_epi32(INT_MAX >> (32 - bit_depth));
#  291|->       __m256i s32_low_lim = _mm256_set1_epi32(INT_MIN >> (32 - bit_depth));
#  292|   
#  293|         if (is_signed)

Error: CPPCHECK_WARNING (CWE-190): [#def3]
OpenJPH-0.21.2/src/core/transform/ojph_colour_sse2.cpp:136: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
#  134|         __m128 fl_low_lim = _mm_set1_ps((float)neg_limit); // val >= lower
#  135|         __m128i s32_up_lim = _mm_set1_epi32(INT_MAX >> (32 - bit_depth));
#  136|->       __m128i s32_low_lim = _mm_set1_epi32(INT_MIN >> (32 - bit_depth));
#  137|   
#  138|         if (is_signed)

Scan Properties

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