Conversation
xsscx
approved these changes
Mar 15, 2026
Member
xsscx
left a comment
There was a problem hiding this comment.
Maintainer Review
2026-03-15 02:47:02 UTC
Repro
mkdir pr-694
cd pr-694
git clone https://github.com/InternationalColorConsortium/iccDEV.git
cd iccDEV/Build
git fetch origin pull/694/head:pr-694
git checkout pr-694
export CXX=clang++ && export CXXFLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g -O1 -fprofile-arcs -ftest-coverage" && export LDFLAGS="-fsanitize=address,undefined -fprofile-arcs" && cmake Cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON -DENABLE_UBSAN=ON -DENABLE_COVERAGE=ON
make -j$(nproc)
cd ../Testing/
echo "=== Updating PATH ==="
for d in ../Build/Tools/*; do
[ -d "$d" ] && export PATH="$(realpath "$d"):$PATH"
done
wget https://github.com/xsscx/fuzz/raw/refs/heads/master/graphics/icc/sbo-CIccCalculatorFunc-Apply-IccMpeCalc_cpp-Line3873.icc
export ASAN_OPTIONS=print_scariness=1 && printf "'RGB '\t; Data Format\nicEncodeFloat\t; Encoding\n\n0.5 0.5 0.5\n" > pcc-test-data.txt && ASAN_OPTIONS=print_scariness=1 iccApplyNamedCmm pcc-test-data.txt 0 0 sbo-CIccCalculatorFunc-Apply-IccMpeCalc_cpp-Line3873.icc 0
PR Application Output
[2026-03-15 02:46:45 UTC] ~/pr-694/iccDEV/Testing (pr-694)$ export ASAN_OPTIONS=print_scariness=1 && printf "'RGB '\t; Data Format\nicEncodeFloat\t; Encoding\n\n0.5 0.5 0.5\n" > pcc-test-data.txt && ASAN_OPTIONS=print_scariness=1 iccApplyNamedCmm pcc-test-data.txt 0 0 sbo-CIccCalculatorFunc-Apply-IccMpeCalc_cpp-Line3873.icc 0
Error 3 - Unable to begin profile application - Possibly invalid or incompatible profiles
=================================================================
==41589==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x5697362d5f91 in operator new[](unsigned long) (/home/h02332/pr-694/iccDEV/Build/Tools/IccApplyNamedCmm/iccApplyNamedCmm+0x15bf91) (BuildId: 55d41a0092ec5683a5f97d63d6d073a831b7eae0)
#1 0x7b0ae42028f5 in CIccMpeToneMap::Read(unsigned int, CIccIO*) /home/h02332/pr-694/iccDEV/IccProfLib/IccMpeBasic.cpp:4525:31
#2 0x7b0ae44c4ef0 in CIccTagMultiProcessElement::Read(unsigned int, CIccIO*) /home/h02332/pr-694/iccDEV/IccProfLib/IccTagMPE.cpp:1068:21
#3 0x7b0ae42c27bf in CIccProfile::LoadTag(IccTagEntry*, CIccIO*, bool) /home/h02332/pr-694/iccDEV/IccProfLib/IccProfile.cpp:1335:14
#4 0x7b0ae42c2027 in CIccProfile::FindTag(IccTagEntry&) /home/h02332/pr-694/iccDEV/IccProfLib/IccProfile.cpp:437:5
#5 0x7b0ae40b0343 in CIccXform::Create(CIccProfile*, bool, icRenderingIntent, icXformInterp, IIccProfileConnectionConditions*, icXformLutType, bool, CIccCreateXformHintManager*) /home/h02332/pr-694/iccDEV/IccProfLib/IccCmm.cpp:634:30
#6 0x7b0ae415bd1f in CIccNamedColorCmm::AddXform(CIccProfile*, icRenderingIntent, icXformInterp, IIccProfileConnectionConditions*, icXformLutType, bool, CIccCreateXformHintManager*) /home/h02332/pr-694/iccDEV/IccProfLib/IccCmm.cpp:10799:17
#7 0x7b0ae4159317 in CIccNamedColorCmm::AddXform(char const*, icRenderingIntent, icXformInterp, IIccProfileConnectionConditions*, icXformLutType, bool, CIccCreateXformHintManager*, bool) /home/h02332/pr-694/iccDEV/IccProfLib/IccCmm.cpp:10549:20
#8 0x5697362da5a7 in main /home/h02332/pr-694/iccDEV/Tools/CmdLine/IccApplyNamedCmm/iccApplyNamedCmm.cpp:381:18
#9 0x7b0ae342a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#10 0x7b0ae342a28a in __libc_start_main csu/../csu/libc-start.c:360:3
#11 0x5697361fca04 in _start (/home/h02332/pr-694/iccDEV/Build/Tools/IccApplyNamedCmm/iccApplyNamedCmm+0x82a04) (BuildId: 55d41a0092ec5683a5f97d63d6d073a831b7eae0)
SUMMARY: AddressSanitizer: 24 byte(s) leaked in 1 allocation(s).
xsscx
pushed a commit
that referenced
this pull request
Mar 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #678
Pull Request Checklist