Task #1372 - jpegxl-0.8.2-6.fc40/scan-results.err
back to task #1372download
Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/examples/decode_oneshot.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/examples/decode_progressive.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/examples/encode_oneshot.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-404): 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: jpegxl-0.8.2-build/libjxl-0.8.2/lib/extras/exif.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: 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: 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: 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: 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: 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: 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: 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: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:209:19: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'icc_data_ptr') # 207| jpeg_decomp_master* m = cinfo->master; # 208| if (m->icc_profile_.empty()) { # 209|-> *icc_data_ptr = nullptr; # 210| *icc_data_len = 0; # 211| return FALSE; Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:210:19: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'icc_data_len') # 208| if (m->icc_profile_.empty()) { # 209| *icc_data_ptr = nullptr; # 210|-> *icc_data_len = 0; # 211| return FALSE; # 212| } Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:213:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'icc_data_len') # 211| return FALSE; # 212| } # 213|-> *icc_data_len = m->icc_profile_.size(); # 214| *icc_data_ptr = (JOCTET*)malloc(*icc_data_len); # 215| if (*icc_data_ptr == nullptr) { Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:214:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'icc_data_ptr') # 212| } # 213| *icc_data_len = m->icc_profile_.size(); # 214|-> *icc_data_ptr = (JOCTET*)malloc(*icc_data_len); # 215| if (*icc_data_ptr == nullptr) { # 216| JPEGLI_ERROR("jpegli_read_icc_profile: Out of memory"); Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:218:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 216| JPEGLI_ERROR("jpegli_read_icc_profile: Out of memory"); # 217| } # 218|-> memcpy(*icc_data_ptr, m->icc_profile_.data(), *icc_data_len); # 219| return TRUE; # 220| } Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:372:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'xoffset') # 370| } # 371| // TODO(szabadka) Skip the IDCT for skipped over blocks. # 372|-> size_t xend = *xoffset + *width; # 373| *xoffset = (*xoffset / DCTSIZE) * DCTSIZE; # 374| *width = xend - *xoffset; Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jpegli/decode.cc:372:28: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'width') # 370| } # 371| // TODO(szabadka) Skip the IDCT for skipped over blocks. # 372|-> size_t xend = *xoffset + *width; # 373| *xoffset = (*xoffset / DCTSIZE) * DCTSIZE; # 374| *width = xend - *xoffset; Error: CPPCHECK_WARNING: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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): 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): 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): 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): 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): 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): 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): 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): 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): 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): 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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): 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: 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: 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: 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: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_detect_dots.cc:368:33: warning[deadcode.DeadStores]: Value stored to 'bgrow' during its initialization is never read # 366| // bgrow is only used if kOptimizeBackground is false. # 367| // NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) # 368|-> const float* JXL_RESTRICT bgrow = background.ConstPlaneRow(c, y); # 369| for (int sx = -rectBounds; # 370| sx < (static_cast<int>(cc.bounds.xsize()) + rectBounds); sx++) { Error: CPPCHECK_WARNING: 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: 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: 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: 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): 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 (CWE-457): jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:3725: included_from: Included from here. jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc: scope_hint: In function ‘default_implementation::(anonymous namespace)::PrefixCode::ComputeCodeLengths(unsigned long const*, unsigned long, unsigned char const*, unsigned char const*, unsigned char*)’ jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:618:30: warning[-Wmaybe-uninitialized]: ‘compact_freqs’ may be used uninitialized # 618 | ComputeCodeLengthsNonZero(compact_freqs, ni, min_limit, max_limit, # | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 619 | num_bits); # | ~~~~~~~~~ jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:571:15: note: by argument 1 of type ‘const uint64_t *’ to ‘default_implementation::(anonymous namespace)::PrefixCode::ComputeCodeLengthsNonZero(unsigned long const*, unsigned long, unsigned char*, unsigned char*, unsigned char*)’ declared here # 571 | static void ComputeCodeLengthsNonZero(const uint64_t* freqs, size_t n, # | ^~~~~~~~~~~~~~~~~~~~~~~~~ jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/enc_fast_lossless.cc:605:14: note: ‘compact_freqs’ declared here # 605 | uint64_t compact_freqs[kMaxNumSymbols]; # | ^~~~~~~~~~~~~ # 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: 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: 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: 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: 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: 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: 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: 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: 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): 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: jpegxl-0.8.2-build/libjxl-0.8.2/lib/jxl/headers.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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): 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: 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: 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: 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: 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: 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: 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: 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: 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): 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: 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: 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: 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: 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: 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: jpegxl-0.8.2-build/libjxl-0.8.2/lib/threads/thread_parallel_runner_internal.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/plugins/gdk-pixbuf/pixbufloader-jxl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/plugins/gimp/file-jxl-load.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/plugins/gimp/file-jxl-save.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/dichotomy.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/enc.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/enc.cc:1343: warning[uninitvar]: Uninitialized variable: sorted_freq # 1341| // initial sort # 1342| // TODO(skal): replace by counting-sort?? (merged with previous loop?) # 1343|-> qsort(sorted_freq, nb_syms, sizeof(sorted_freq[0]), cmp); # 1344| # 1345| // fake last symbol, with lowest frequency: will be assigned to the forbidden Error: CPPCHECK_WARNING (CWE-786): jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/enc.cc:1434: error[negativeIndex]: Array 'start[32]' accessed at index -1, which is out of bounds. # 1432| } # 1433| } # 1434|-> assert(start[max_bit_size - 1] == nb_syms - 1); # 1435| # 1436| // Fix codes with length greater than 16 bits. We move too long Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/jpeg_tools.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-823): jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/jpeg_tools.cc:235: error[arrayIndexOutOfBounds]: Array 'yuv[24]' accessed at index 127, which is out of bounds. # 233| uint16_t idx[64]; # 234| for (int k = 0; k < 64; ++k) { # 235|-> idx[k] = YUVToRiskIdx(yuv[k + 0 * 64], yuv[k + 1 * 64], yuv[k + 2 * 64]); # 236| } # 237| const int kRGB3 = sjpeg::kRGBSize * sjpeg::kRGBSize * sjpeg::kRGBSize; Error: CPPCHECK_WARNING (CWE-823): jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/jpeg_tools.cc:235: error[arrayIndexOutOfBounds]: Array 'yuv[24]' accessed at index 191, which is out of bounds. # 233| uint16_t idx[64]; # 234| for (int k = 0; k < 64; ++k) { # 235|-> idx[k] = YUVToRiskIdx(yuv[k + 0 * 64], yuv[k + 1 * 64], yuv[k + 2 * 64]); # 236| } # 237| const int kRGB3 = sjpeg::kRGBSize * sjpeg::kRGBSize * sjpeg::kRGBSize; Error: CPPCHECK_WARNING (CWE-823): jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/jpeg_tools.cc:235: error[arrayIndexOutOfBounds]: Array 'yuv[24]' accessed at index 63, which is out of bounds. # 233| uint16_t idx[64]; # 234| for (int k = 0; k < 64; ++k) { # 235|-> idx[k] = YUVToRiskIdx(yuv[k + 0 * 64], yuv[k + 1 * 64], yuv[k + 2 * 64]); # 236| } # 237| const int kRGB3 = sjpeg::kRGBSize * sjpeg::kRGBSize * sjpeg::kRGBSize; Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/sjpeg/src/yuv_convert.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/skcms/skcms.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/skcms/skcms.cc:158:32: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value # 156| # 157| // Basic soundness checks for sRGBish transfer functions. # 158|-> if (isfinitef_(tf.a + tf.b + tf.c + tf.d + tf.e + tf.f + tf.g) # 159| // a,c,d,g should be non-negative to make any sense. # 160| && tf.a >= 0 Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/third_party/skcms/skcms.cc:2239:27: warning[core.UndefinedBinaryOperatorResult]: The left operand of '*' is a garbage value # 2237| tf.a = 1; # 2238| tf.b = 0; # 2239|-> tf.e = tf.c*tf.d + tf.f # 2240| - powf_(tf.a*tf.d + tf.b, tf.g); # 2241| Error: COMPILER_WARNING (CWE-457): jpegxl-0.8.2-build/libjxl-0.8.2/third_party/skcms/src/Transform_inl.h:120:14: warning[-Wmaybe-uninitialized]: ‘d’ may be used uninitialized # 120 | d[i] = v[i]; # | ~~~~~^~~~ jpegxl-0.8.2-build/libjxl-0.8.2/third_party/skcms/src/Transform_inl.h: scope_hint: In function ‘baseline::exec_ops(Op const*, void const**, char const*, char*, int)’ jpegxl-0.8.2-build/libjxl-0.8.2/third_party/skcms/src/Transform_inl.h:118:7: note: ‘d’ was declared here # 118 | D d; # | ^ # 118| D d; # 119| for (int i = 0; i < N; i++) { # 120|-> d[i] = v[i]; # 121| } # 122| return d; Error: CPPCHECK_WARNING: 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: 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: 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: 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: 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: 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: 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): 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: CPPCHECK_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c: scope_hint: In function ‘PrintBasicInfo’ jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:60: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 # 58| // move any remaining bytes to the front if necessary # 59| if (remaining != 0) { # 60|-> memmove(data, data + data_size - remaining, remaining); # 61| } # 62| // resize the buffer to append one more chunk of data Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:60:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 58| // move any remaining bytes to the front if necessary # 59| if (remaining != 0) { # 60|-> memmove(data, data + data_size - remaining, remaining); # 61| } # 62| // resize the buffer to append one more chunk of data Error: CPPCHECK_WARNING (CWE-401): jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:64: error[memleakOnRealloc]: Common realloc mistake: 'data' nulled but not freed upon failure # 62| // resize the buffer to append one more chunk of data # 63| // TODO(lode): avoid unnecessary reallocations # 64|-> data = (uint8_t*)realloc(data, remaining + chunk_size); # 65| // append bytes read from the file behind the remaining bytes # 66| size_t read_size = fread(data + remaining, 1, chunk_size, file); Error: GCC_ANALYZER_WARNING (CWE-401): jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:73:10: warning[-Wanalyzer-malloc-leak]: leak of ‘data’ # 71| data_size = remaining + read_size; # 72| JxlDecoderSetInput(dec, data, data_size); # 73|-> if (feof(file)) JxlDecoderCloseInput(dec); # 74| } else if (status == JXL_DEC_SUCCESS) { # 75| // Finished all processing. Error: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:315:11: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value # 313| printf("full image size"); # 314| } # 315|-> if (info.have_animation) { # 316| float ms = frame_header.duration * 1000.f * # 317| info.animation.tps_denominator / Error: GCC_ANALYZER_WARNING (CWE-457): jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:315:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘info.have_animation’ # 313| printf("full image size"); # 314| } # 315|-> if (info.have_animation) { # 316| float ms = frame_header.duration * 1000.f * # 317| info.animation.tps_denominator / Error: GCC_ANALYZER_WARNING (CWE-457): 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: CLANG_WARNING: jpegxl-0.8.2-build/libjxl-0.8.2/tools/jxlinfo.c:375:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>' is a garbage value # 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: jpegxl-0.8.2-build/libjxl-0.8.2/tools/speed_stats.cc: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: 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: 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): 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: 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: 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: 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.