jpegxl-0.10.3-5.fc42
List of Findings
Error: CPPCHECK_WARNING (CWE-758): [#def1]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/extras/dec/pnm.cc:358: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
Error: CPPCHECK_WARNING (CWE-909): [#def2]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/extras/dec/pnm.cc:479: error[uninitStructMember]: Uninitialized struct member: pec.index
Error: CPPCHECK_WARNING (CWE-457): [#def3]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/extras/dec/pnm.cc:479: error[uninitvar]: Uninitialized variable: pec.index
Error: CPPCHECK_WARNING (CWE-786): [#def4]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jpegli/encode.cc:575: error[negativeIndex]: Array 'row[0]' accessed at index row[*][-1], which is out of bounds.
Error: CPPCHECK_WARNING (CWE-909): [#def5]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:230: error[uninitStructMember]: Uninitialized struct member: root.left_child
Error: CPPCHECK_WARNING (CWE-909): [#def6]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:230: error[uninitStructMember]: Uninitialized struct member: root.right_child
Error: CPPCHECK_WARNING (CWE-909): [#def7]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:230: error[uninitStructMember]: Uninitialized struct member: root.y_center
Error: CPPCHECK_WARNING (CWE-457): [#def8]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:230: error[uninitvar]: Uninitialized variables: root.left_child, root.right_child, root.y_center
Error: CPPCHECK_WARNING (CWE-909): [#def9]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:271: error[uninitStructMember]: Uninitialized struct member: left.left_child
Error: CPPCHECK_WARNING (CWE-909): [#def10]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:271: error[uninitStructMember]: Uninitialized struct member: left.right_child
Error: CPPCHECK_WARNING (CWE-909): [#def11]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:271: error[uninitStructMember]: Uninitialized struct member: left.y_center
Error: CPPCHECK_WARNING (CWE-457): [#def12]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:271: error[uninitvar]: Uninitialized variables: left.left_child, left.right_child, left.y_center
Error: CPPCHECK_WARNING (CWE-909): [#def13]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:278: error[uninitStructMember]: Uninitialized struct member: right.left_child
Error: CPPCHECK_WARNING (CWE-909): [#def14]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:278: error[uninitStructMember]: Uninitialized struct member: right.right_child
Error: CPPCHECK_WARNING (CWE-909): [#def15]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:278: error[uninitStructMember]: Uninitialized struct member: right.y_center
Error: CPPCHECK_WARNING (CWE-457): [#def16]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/dec_patch_dictionary.cc:278: error[uninitvar]: Uninitialized variables: right.left_child, right.right_child, right.y_center
Error: CPPCHECK_WARNING (CWE-457): [#def17]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_fast_lossless.cc:421: warning[uninitvar]: Uninitialized variable: compact_freqs
Error: COMPILER_WARNING (CWE-457): [#def18]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_fast_lossless.cc: scope_hint: In function ‘(anonymous namespace)::PrefixCode::ComputeCodeLengths(unsigned long const*, unsigned long, unsigned char const*, unsigned char const*, unsigned char*)’
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_fast_lossless.cc:421:30: warning[-Wmaybe-uninitialized]: ‘compact_freqs’ may be used uninitialized
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_fast_lossless.cc:374:15: note: by argument 1 of type ‘const uint64_t *’ to ‘(anonymous namespace)::PrefixCode::ComputeCodeLengthsNonZero(unsigned long const*, unsigned long, unsigned char*, unsigned char*, unsigned char*)’ declared here
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_fast_lossless.cc:408:14: note: ‘compact_freqs’ declared here
Error: CPPCHECK_WARNING (CWE-398): [#def19]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_icc_codec.cc:164: error[containerOutOfBounds]: Out of bounds access in 'kTagStrings[j]', if 'kTagStrings' size is 4 and 'j' is 16
Error: CPPCHECK_WARNING (CWE-398): [#def20]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/enc_icc_codec.cc:389: error[containerOutOfBounds]: Out of bounds access in 'kTypeStrings[i]', if 'kTypeStrings' size is 4 and 'i' is 7
Error: CPPCHECK_WARNING (CWE-562): [#def21]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/encode.cc:179: error[danglingLifetime]: Non-local variable 'next_out_' will use pointer to local variable 'next_out'.
Error: CPPCHECK_WARNING (CWE-562): [#def22]
jpegxl-0.10.3-build/libjxl-0.10.3/lib/jxl/test_utils.cc:73: error[returnDanglingLifetime]: Returning object that points to local variable 'str' that will be invalid when returning.
Error: CPPCHECK_WARNING (CWE-457): [#def23]
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/sjpeg/src/enc.cc:1341: warning[uninitvar]: Uninitialized variable: sorted_freq
Error: CPPCHECK_WARNING (CWE-786): [#def24]
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/sjpeg/src/enc.cc:1432: error[negativeIndex]: Array 'start[32]' accessed at index -1, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-823): [#def25]
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/sjpeg/src/jpeg_tools.cc:243: error[arrayIndexOutOfBounds]: Array 'yuv[24]' accessed at index 127, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-823): [#def26]
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/sjpeg/src/jpeg_tools.cc:243: error[arrayIndexOutOfBounds]: Array 'yuv[24]' accessed at index 191, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-823): [#def27]
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/sjpeg/src/jpeg_tools.cc:243: error[arrayIndexOutOfBounds]: Array 'yuv[24]' accessed at index 63, which is out of bounds.
Error: COMPILER_WARNING (CWE-457): [#def28]
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/skcms/src/Transform_inl.h:119:14: warning[-Wmaybe-uninitialized]: ‘d’ may be used uninitialized
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/skcms/src/Transform_inl.h: scope_hint: In function ‘baseline::exec_ops(skcms_private::Op const*, void const**, char const*, char*, int)’
jpegxl-0.10.3-build/libjxl-0.10.3/third_party/skcms/src/Transform_inl.h:117:7: note: ‘d’ was declared here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
jpegxl-0.10.3-build/libjxl-0.10.3/tools/jxlinfo.c: scope_hint: In function ‘PrintBasicInfo’
jpegxl-0.10.3-build/libjxl-0.10.3/tools/jxlinfo.c:59:9: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memmove’ must be non-null
Error: CPPCHECK_WARNING (CWE-401): [#def30]
jpegxl-0.10.3-build/libjxl-0.10.3/tools/jxlinfo.c:63: error[memleakOnRealloc]: Common realloc mistake: 'data' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-415): [#def31]
jpegxl-0.10.3-build/libjxl-0.10.3/tools/jxlinfo.c:63:24: warning[-Wanalyzer-double-free]: double-‘free’ of ‘data’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
jpegxl-0.10.3-build/libjxl-0.10.3/tools/jxlinfo.c:72:10: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
jpegxl-0.10.3-build/libjxl-0.10.3/tools/jxlinfo.c:311:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘info.have_animation’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-180.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | jpegxl-0.10.3-5.fc42 |
store-results-to | /tmp/tmpc4rte6e5/jpegxl-0.10.3-5.fc42.tar.xz |
time-created | 2024-11-13 00:35:23 |
time-finished | 2024-11-13 00:43:35 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpc4rte6e5/jpegxl-0.10.3-5.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpc4rte6e5/jpegxl-0.10.3-5.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |