Fixed defects
List of Defects
Error: CPPCHECK_WARNING (CWE-404): [#def1]
jpegxl-0.8.2-build/libjxl-0.8.2/examples/encode_oneshot.cc:63: error[resourceLeak]: Resource leak: file
# 61| size_t readsize = fread(data.data(), 1, size, file);
# 62| if ((long)readsize != size) {
# 63|-> return false;
# 64| }
# 65| if (fclose(file) != 0) {
Error: CPPCHECK_WARNING (CWE-404): [#def2]
jpegxl-0.8.2-build/libjxl-0.8.2/examples/encode_oneshot.cc:232: error[resourceLeak]: Resource leak: file
# 230| bytes.size()) {
# 231| fprintf(stderr, "Could not write bytes to %s\n", filename);
# 232|-> return false;
# 233| }
# 234| if (fclose(file) != 0) {
Error: CPPCHECK_WARNING: [#def3]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/codec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def4]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/apng.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/color_description.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def6]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/color_hints.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def7]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/decode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/exr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/gif.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jpegli.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jpg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jxl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def13]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jxl.cc:31:23: warning[core.CallAndMessage]: Called C++ object pointer is null
# 29| Flush();
# 30| static const size_t kBoxOutputChunkSize = 1 << 16;
# 31|-> box_data_->resize(box_data_->size() + kBoxOutputChunkSize);
# 32| next_out_ = box_data_->data() + total_size_;
# 33| avail_out_ = box_data_->size() - total_size_;
Error: CLANG_WARNING: [#def14]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jxl.cc:264:26: warning[core.CallAndMessage]: Called C++ object pointer is null
# 262| size_t used_jpeg_output =
# 263| jpeg_data_chunk.size() - JxlDecoderReleaseJPEGBuffer(dec);
# 264|-> jpeg_bytes->insert(jpeg_bytes->end(), jpeg_data_chunk.data(),
# 265| jpeg_data_chunk.data() + used_jpeg_output);
# 266| if (used_jpeg_output == 0) {
Error: CPPCHECK_WARNING: [#def15]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/pgx.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/pnm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def17]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/pnm.cc:372: error[uninitStructMember]: Uninitialized struct member: pec.index
# 370| pec.ec_info.bits_per_sample = ppf->info.bits_per_sample;
# 371| pec.ec_info.type = type;
# 372|-> ppf->extra_channels_info.emplace_back(std::move(pec));
# 373| }
# 374|
Error: CPPCHECK_WARNING (CWE-457): [#def18]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/pnm.cc:372: error[uninitvar]: Uninitialized variable: pec.index
# 370| pec.ec_info.bits_per_sample = ppf->info.bits_per_sample;
# 371| pec.ec_info.type = type;
# 372|-> ppf->extra_channels_info.emplace_back(std::move(pec));
# 373| }
# 374|
Error: CPPCHECK_WARNING: [#def19]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/apng.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/encode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def21]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/exr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def22]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/jpegli.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def23]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/jpg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def24]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/jxl.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def25]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/npy.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def26]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/pgx.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def27]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/enc/pnm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def28]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/hlg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def29]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jxl.cc:6: included_from: Included from here.
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jxl.h:19: included_from: Included from here.
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/packed_image.h:88:30: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 86|
# 87| static size_t CalcStride(const JxlPixelFormat& format, size_t xsize) {
# 88|-> size_t stride = xsize * (BitsPerChannel(format.data_type) *
# 89| format.num_channels / jxl::kBitsPerByte);
# 90| if (format.align > 1) {
Error: CPPCHECK_WARNING: [#def30]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/packed_image_convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/render_hdr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def32]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/tone_mapping.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def33]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/dct.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def34]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def35]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode_marker.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def36]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode_marker.cc:597:3: warning[deadcode.DeadStores]: Value stored to 'pos' is never read
# 595| JPEGLI_ERROR("Unexpected marker 0x%x", marker);
# 596| }
# 597|-> pos += marker_len;
# 598| AdvanceInput(cinfo, marker_len);
# 599| return marker;
Error: CPPCHECK_WARNING: [#def37]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode_scan.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def38]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/encode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def39]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/entropy_coding.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def40]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/huffman.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/quant.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/ac_strategy.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/ans_common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/aux_out.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/blending.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/box_content_decoder.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def47]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/butteraugli/butteraugli.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def48]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/butteraugli_wrapper.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/chroma_from_luma.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/coeff_order.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/color_encoding_internal.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def52]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/color_encoding_internal.cc:298: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 296| JXL_DASSERT(have_fields_);
# 297| CIExy xy;
# 298|-> switch (white_point) {
# 299| case WhitePoint::kCustom:
# 300| return white_.Get();
Error: CPPCHECK_WARNING (CWE-758): [#def53]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/color_encoding_internal.cc:345: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 343| JXL_ASSERT(HasPrimaries());
# 344| PrimariesCIExy xy;
# 345|-> switch (primaries) {
# 346| case Primaries::kCustom:
# 347| xy.r = red_.Get();
Error: CPPCHECK_WARNING: [#def54]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/color_management.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def55]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/compressed_dc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def56]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/convolve_separable5.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def57]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/convolve_separable7.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def58]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/convolve_slow.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def59]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/convolve_symmetric3.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def60]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/convolve_symmetric5.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_ans.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def62]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_ans.cc:169:29: warning[core.BitwiseShift]: Right operand is negative in left shift
# 167| } else {
# 168| int bitcount = GetPopulationCountPrecision(code - 1, shift);
# 169|-> (*counts)[i] = (1 << (code - 1)) +
# 170| (input->ReadBits(bitcount) << (code - 1 - bitcount));
# 171| }
Error: CPPCHECK_WARNING: [#def63]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_cache.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def64]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_cache.cc:213:7: warning[deadcode.DeadStores]: Value stored to 'linear' is never read
# 211| if (linear) {
# 212| builder.AddStage(GetFromLinearStage(output_encoding_info));
# 213|-> linear = false;
# 214| }
# 215|
Error: CPPCHECK_WARNING: [#def65]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_context_map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_external_image.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def67]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_external_image.cc:303:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'temp_channels' is still referred to by the stack variable 'channels' upon returning to the caller. This will be a dangling reference
# 301| size_t ysize = channels[0]->ysize();
# 302| if (stride < bytes_per_pixel * xsize) {
# 303|-> return JXL_FAILURE("stride is smaller than scanline width in bytes: %" PRIuS
# 304| " vs %" PRIuS,
# 305| stride, bytes_per_pixel * xsize);
Error: CLANG_WARNING: [#def68]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_external_image.cc:309:5: warning[core.StackAddressEscape]: Address of stack memory associated with local variable 'temp_channels' is still referred to by the stack variable 'channels' upon returning to the caller. This will be a dangling reference
# 307| if (!out_callback.IsPresent() &&
# 308| out_size < (ysize - 1) * stride + bytes_per_pixel * xsize) {
# 309|-> return JXL_FAILURE("out_size is too small to store image");
# 310| }
# 311|
Error: CPPCHECK_WARNING: [#def69]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_frame.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_group.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_group_border.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def72]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_huffman.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def73]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_modular.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def74]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_noise.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-909): [#def76]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:234: error[uninitStructMember]: Uninitialized struct member: root.left_child
# 232| root.start = 0;
# 233| root.num = intervals.size();
# 234|-> patch_tree_.push_back(root);
# 235| size_t next = 0;
# 236| while (next < patch_tree_.size()) {
Error: CPPCHECK_WARNING (CWE-909): [#def77]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:234: error[uninitStructMember]: Uninitialized struct member: root.right_child
# 232| root.start = 0;
# 233| root.num = intervals.size();
# 234|-> patch_tree_.push_back(root);
# 235| size_t next = 0;
# 236| while (next < patch_tree_.size()) {
Error: CPPCHECK_WARNING (CWE-909): [#def78]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:234: error[uninitStructMember]: Uninitialized struct member: root.y_center
# 232| root.start = 0;
# 233| root.num = intervals.size();
# 234|-> patch_tree_.push_back(root);
# 235| size_t next = 0;
# 236| while (next < patch_tree_.size()) {
Error: CPPCHECK_WARNING (CWE-457): [#def79]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:234: error[uninitvar]: Uninitialized variables: root.left_child, root.right_child, root.y_center
# 232| root.start = 0;
# 233| root.num = intervals.size();
# 234|-> patch_tree_.push_back(root);
# 235| size_t next = 0;
# 236| while (next < patch_tree_.size()) {
Error: CPPCHECK_WARNING (CWE-909): [#def80]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:275: error[uninitStructMember]: Uninitialized struct member: left.left_child
# 273| left.num = left_end - left.start;
# 274| patch_tree_[next].left_child = patch_tree_.size();
# 275|-> patch_tree_.push_back(left);
# 276| }
# 277| if (right_start < end) {
Error: CPPCHECK_WARNING (CWE-909): [#def81]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:275: error[uninitStructMember]: Uninitialized struct member: left.right_child
# 273| left.num = left_end - left.start;
# 274| patch_tree_[next].left_child = patch_tree_.size();
# 275|-> patch_tree_.push_back(left);
# 276| }
# 277| if (right_start < end) {
Error: CPPCHECK_WARNING (CWE-909): [#def82]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:275: error[uninitStructMember]: Uninitialized struct member: left.y_center
# 273| left.num = left_end - left.start;
# 274| patch_tree_[next].left_child = patch_tree_.size();
# 275|-> patch_tree_.push_back(left);
# 276| }
# 277| if (right_start < end) {
Error: CPPCHECK_WARNING (CWE-457): [#def83]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:275: error[uninitvar]: Uninitialized variables: left.left_child, left.right_child, left.y_center
# 273| left.num = left_end - left.start;
# 274| patch_tree_[next].left_child = patch_tree_.size();
# 275|-> patch_tree_.push_back(left);
# 276| }
# 277| if (right_start < end) {
Error: CPPCHECK_WARNING (CWE-909): [#def84]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:282: error[uninitStructMember]: Uninitialized struct member: right.left_child
# 280| right.num = end - right.start;
# 281| patch_tree_[next].right_child = patch_tree_.size();
# 282|-> patch_tree_.push_back(right);
# 283| }
# 284| ++next;
Error: CPPCHECK_WARNING (CWE-909): [#def85]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:282: error[uninitStructMember]: Uninitialized struct member: right.right_child
# 280| right.num = end - right.start;
# 281| patch_tree_[next].right_child = patch_tree_.size();
# 282|-> patch_tree_.push_back(right);
# 283| }
# 284| ++next;
Error: CPPCHECK_WARNING (CWE-909): [#def86]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:282: error[uninitStructMember]: Uninitialized struct member: right.y_center
# 280| right.num = end - right.start;
# 281| patch_tree_[next].right_child = patch_tree_.size();
# 282|-> patch_tree_.push_back(right);
# 283| }
# 284| ++next;
Error: CPPCHECK_WARNING (CWE-457): [#def87]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_patch_dictionary.cc:282: error[uninitvar]: Uninitialized variables: right.left_child, right.right_child, right.y_center
# 280| right.num = end - right.start;
# 281| patch_tree_[next].right_child = patch_tree_.size();
# 282|-> patch_tree_.push_back(right);
# 283| }
# 284| ++next;
Error: CPPCHECK_WARNING: [#def88]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/dec_xyb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/decode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def90]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/decode_to_jpeg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def91]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_ac_strategy.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_adaptive_quantization.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_ans.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_ar_control_field.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_bit_writer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def96]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_butteraugli_comparator.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def97]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_butteraugli_pnorm.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def98]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_cache.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def99]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_chroma_from_luma.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def100]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_cluster.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def101]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_coeff_order.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def102]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_color_management.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-562): [#def103]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_color_management.h:59: error[danglingLifetime]: Non-local variable 'cms_data_' will use pointer to local variable 'input_profile'.
# 57| return JXL_FAILURE("Conversion to CMYK is not supported");
# 58| output_profile.num_channels = c_dst.Channels();
# 59|-> cms_data_ = cms_.init(cms_.init_data, num_threads, xsize, &input_profile,
# 60| &output_profile, intensity_target);
# 61| JXL_RETURN_IF_ERROR(cms_data_ != nullptr);
Error: CPPCHECK_WARNING (CWE-562): [#def104]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_color_management.h:59: error[danglingLifetime]: Non-local variable 'cms_data_' will use pointer to local variable 'output_profile'.
# 57| return JXL_FAILURE("Conversion to CMYK is not supported");
# 58| output_profile.num_channels = c_dst.Channels();
# 59|-> cms_data_ = cms_.init(cms_.init_data, num_threads, xsize, &input_profile,
# 60| &output_profile, intensity_target);
# 61| JXL_RETURN_IF_ERROR(cms_data_ != nullptr);
Error: CPPCHECK_WARNING: [#def105]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_comparator.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def106]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_context_map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def107]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_detect_dots.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def108]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_dot_dictionary.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def109]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_entropy_coder.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def110]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_external_image.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def111]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def112]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:618: warning[uninitvar]: Uninitialized variable: compact_freqs
# 616| }
# 617| uint8_t num_bits[kMaxNumSymbols] = {};
# 618|-> ComputeCodeLengthsNonZero(compact_freqs, ni, min_limit, max_limit,
# 619| num_bits);
# 620| ni = 0;
Error: COMPILER_WARNING: [#def113]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:2953:28: warning[-Waggressive-loop-optimizations]: iteration 9223372036854775808 invokes undefined behavior
# 2953 | uint16_t val = LoadLE16(rgba + 2 * x);
# | ^
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:2952:12: note: within this loop
# 2952 | for (; x < oxs; x++) {
# | ^
# 2951| #endif
# 2952| for (; x < oxs; x++) {
# 2953|-> uint16_t val = LoadLE16(rgba + 2 * x);
# 2954| if (big_endian) {
# 2955| val = SwapEndian(val);
Error: COMPILER_WARNING: [#def114]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:2973:25: warning[-Waggressive-loop-optimizations]: iteration 9223372036854775808 invokes undefined behavior
# 2973 | luma[x] = rgba[2 * x];
# | ^
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:2972:12: note: within this loop
# 2972 | for (; x < oxs; x++) {
# | ^
# 2971| #endif
# 2972| for (; x < oxs; x++) {
# 2973|-> luma[x] = rgba[2 * x];
# 2974| alpha[x] = rgba[2 * x + 1];
# 2975| }
Error: CPPCHECK_WARNING: [#def115]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_file.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def116]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_frame.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def117]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_group.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def118]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_heuristics.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def119]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_huffman.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def120]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_icc_codec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-398): [#def121]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_icc_codec.cc:128: error[containerOutOfBounds]: Out of bounds access in 'kTagStrings[j]', if 'kTagStrings' size is 4 and 'j' is 16
# 126| uint8_t tagcode = kCommandTagUnknown;
# 127| for (size_t j = 0; j < kNumTagStrings; j++) {
# 128|-> if (tag == *kTagStrings[j]) {
# 129| tagcode = j + kCommandTagStringFirst;
# 130| break;
Error: CPPCHECK_WARNING (CWE-398): [#def122]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_icc_codec.cc:339: error[containerOutOfBounds]: Out of bounds access in 'kTypeStrings[i]', if 'kTypeStrings' size is 4 and 'i' is 7
# 337| Tag subTag = DecodeKeyword(icc, size, pos);
# 338| for (size_t i = 0; i < kNumTypeStrings; i++) {
# 339|-> if (subTag == *kTypeStrings[i]) {
# 340| commands_add.push_back(kCommandTypeStartFirst + i);
# 341| pos += 8;
Error: CPPCHECK_WARNING: [#def123]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_image_bundle.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_modular.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def125]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_noise.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def126]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_patch_dictionary.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def127]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_photon_noise.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def128]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_quant_weights.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def129]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_splines.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def130]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_toc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def131]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_transforms.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def132]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_xyb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def133]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/encode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def134]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/entropy_coder.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def135]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/epf.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def136]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/dec/jxl.cc:14: included_from: Included from here.
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/exif.h:77:5: warning[deadcode.DeadStores]: Value stored to 't' is never read
# 75| t += 4;
# 76| uint16_t value = (bigendian ? LoadBE16(t) : LoadLE16(t));
# 77|-> t += 4;
# 78| if (type == 3 && count == 1 && value >= 1 && value <= 8) {
# 79| *orientation = static_cast<JxlOrientation>(value);
Error: CPPCHECK_WARNING: [#def137]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/fields.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def138]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/frame_header.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def139]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/gaborish.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def140]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/gauss_blur.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def141]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/huffman_table.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def142]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/huffman_tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def143]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/icc_codec.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def144]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/icc_codec_common.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def145]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/image.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def146]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/image_bundle.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def147]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/image_metadata.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def148]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/jpeg/dec_jpeg_data.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def149]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/jpeg/dec_jpeg_data_writer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def150]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/jpeg/enc_jpeg_data.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def151]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/jpeg/enc_jpeg_data_reader.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def152]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/jpeg/enc_jpeg_huffman_decode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def153]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/jpeg/jpeg_data.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def154]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/linalg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def155]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/loop_filter.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def156]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/luminance.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def157]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/encoding/dec_ma.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/encoding/enc_debug_tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/encoding/enc_encoding.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def160]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/encoding/enc_ma.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def161]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/encoding/encoding.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def162]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/modular_image.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def163]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/enc_palette.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def164]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/enc_rct.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def165]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/enc_squeeze.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def166]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/enc_transform.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def167]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/rct.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def168]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/squeeze.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def169]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/modular/transform/transform.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def170]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/opsin_params.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def171]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/optimize.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def172]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/passes_state.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def173]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/progressive_split.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def174]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/quant_weights.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def175]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/quantizer.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def176]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/low_memory_render_pipeline.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def177]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/render_pipeline.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def178]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/simple_render_pipeline.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def179]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_blending.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def180]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_chroma_upsampling.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def181]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_epf.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def182]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_from_linear.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def183]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_from_linear.cc:170: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 168| } else {
# 169| // This is a programming error.
# 170|-> JXL_ABORT("Invalid target encoding");
# 171| }
# 172| }
Error: CPPCHECK_WARNING: [#def184]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_gaborish.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_noise.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def186]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_patches.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def187]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_splines.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_spot.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_to_linear.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_tone_mapping.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def191]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_upsampling.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def192]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_upsampling.cc:102: error[missingReturn]: Found an exit path from function with non-void return type that has missing return statement
# 100| [x % 8 < 4 ? x % 4 : 3 - x % 4][y % 8 < 4 ? iy : 4 - iy]
# 101| [x % 8 < 4 ? ix : 4 - ix];
# 102|-> }
# 103| JXL_ABORT("Invalid upsample");
# 104| }
Error: CPPCHECK_WARNING: [#def193]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_write.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def194]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_xyb.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def195]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/render_pipeline/stage_ycbcr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def196]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/splines.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def197]
jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/toc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/box/box.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def199]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/box/box_list_main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def200]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/butteraugli_main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def201]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/cjpeg_hdr.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def202]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/cjxl_main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def203]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/decode_and_encode.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def204]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/djxl_main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-404): [#def205]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/file_io.cc:62: error[resourceLeak]: Resource leak: file
# 60| "Error: %s",
# 61| strerror(errno));
# 62|-> return false;
# 63| }
# 64| if (fclose(file) != 0) {
Error: CPPCHECK_WARNING: [#def206]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/fuzzer_corpus.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def207]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/display_to_hlg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def208]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/exr_to_pq.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def209]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/generate_lut_template.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def210]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/pq_to_hlg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def211]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/render_hlg.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def212]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/texture_to_cube.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def213]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/hdr/tone_map.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def214]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxl_from_tree.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def215]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:375:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘info.animation.num_loops’
# 373| }
# 374| }
# 375|-> if (info.animation.num_loops > 1) total_duration *= info.animation.num_loops;
# 376| if (info.have_animation) {
# 377| printf("Animation length: %.3f seconds%s\n", total_duration * 0.001f,
Error: CPPCHECK_WARNING: [#def216]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/ssimulacra.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def217]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/ssimulacra2.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def218]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/ssimulacra2.cc:446: error[uninitvar]: Uninitialized variable: sscale
# 444| SSIMMap(mu1, mu2, sigma1_sq, sigma2_sq, sigma12, sscale.avg_ssim);
# 445| EdgeDiffMap(img1, mu1, img2, mu2, sscale.avg_edgediff);
# 446|-> msssim.scales.push_back(sscale);
# 447| }
# 448| return msssim;
Error: CPPCHECK_WARNING: [#def219]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/ssimulacra2_main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def220]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/ssimulacra_main.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def221]
jpegxl-0.8.2-build/libjxl-0.8.2/tools/xyb_range.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.7 |
diffbase-analyzer-version-cppcheck | 2.14.2 |
diffbase-analyzer-version-gcc | 14.1.1 |
diffbase-analyzer-version-gcc-analyzer | 14.1.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-113.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | jpegxl-0.10.2-5.fc41 |
diffbase-store-results-to | /tmp/tmpexevdykl/jpegxl-0.10.2-5.fc41.tar.xz |
diffbase-time-created | 2024-07-03 13:42:00 |
diffbase-time-finished | 2024-07-03 13:52:29 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpexevdykl/jpegxl-0.10.2-5.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpexevdykl/jpegxl-0.10.2-5.fc41.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-113.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | jpegxl-0.8.2-6.fc40 |
store-results-to | /tmp/tmpqy7sep0_/jpegxl-0.8.2-6.fc40.tar.xz |
time-created | 2024-07-03 13:30:01 |
time-finished | 2024-07-03 13:41:49 |
title | Fixed defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpqy7sep0_/jpegxl-0.8.2-6.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpqy7sep0_/jpegxl-0.8.2-6.fc40.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |