Skip to content

uio in CIccApplyThreadedCmm::Init() at IccCmmThread.cpp:127 #1663

Description

@xsscx

Maintainer Summary

2026-07-03 21:29:06 UTC

Git

03fb6fa

Repro

cd Testing/hybrid
ASAN_SYMBOLIZER_PATH="$(command -v llvm-symbolizer)" \
ASAN_OPTIONS="print_scariness=1:halt_on_error=1:abort_on_error=1:detect_leaks=0:symbolize=1:fast_unwind_on_fatal=0" \
UBSAN_OPTIONS="print_stacktrace=1:halt_on_error=1:symbolize=1" \
iccApplyProfiles \
  -threads 0 \
  -exportcfg foo.json \
  Data/smCows380_5_780.tif \
  foo.bar \
  1 1 1 1 1 \
  -EMBEDDED 3 \
  -pcc ICC/Spec400_10_700-IllumA_2deg-Abs.icc \
  ../sRGB_v4_ICC_preference.icc \
  1001

Bad Breadcrumb

TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples..
/usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_uninitialized.h:469:17: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'
    #0 0x7ffff714a917 in CIccApplyCmm** std::__do_uninit_fill_n<CIccApplyCmm**, unsigned long, CIccApplyCmm*>(CIccApplyCmm**, unsigned long, CIccApplyCmm* const&) /usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_uninitialized.h:469:17
    #1 0x7ffff714a71c in CIccApplyCmm** std::uninitialized_fill_n<CIccApplyCmm**, unsigned long, CIccApplyCmm*>(CIccApplyCmm**, unsigned long, CIccApplyCmm* const&) /usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_uninitialized.h:571:14
    #2 0x7ffff714a180 in CIccApplyCmm** std::__uninitialized_fill_n_a<CIccApplyCmm**, unsigned long, CIccApplyCmm*, CIccApplyCmm*>(CIccApplyCmm**, unsigned long, CIccApplyCmm* const&, std::allocator<CIccApplyCmm*>&) /usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_uninitialized.h:727:14
    #3 0x7ffff7149661 in std::vector<CIccApplyCmm*, std::allocator<CIccApplyCmm*>>::_M_fill_append(unsigned long, CIccApplyCmm* const&) /usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/vector.tcc:785:24
    #4 0x7ffff71458f5 in std::vector<CIccApplyCmm*, std::allocator<CIccApplyCmm*>>::resize(unsigned long, CIccApplyCmm* const&) /usr/lib/gcc/x86_64-linux-gnu/15/../../../../include/c++/15/bits/stl_vector.h:1167:4
    #5 0x7ffff7138dc0 in CIccApplyThreadedCmm::Init(CIccCmm*, int) IccCmmThread.cpp:127:13
    #6 0x7ffff713c91d in CIccThreadedCmm::GetNewApplyCmm(icStatusCMM&) IccCmmThread.cpp:336:16

Metadata

Metadata

Assignees

Labels

QAMaintainer indicates topic of Quality Assurance

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions