From 49f859f16e3aafaef900b3643d792aad5c04bb55 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Mon, 5 Mar 2018 15:54:36 -0800 Subject: [PATCH] Add dict for ICC profiles to skcms. (#1216) --- projects/skcms/Dockerfile | 2 +- projects/skcms/build.sh | 4 +++- projects/skcms/iccprofile.dict | 27 +++++++++++++++++++++++++++ projects/skcms/iccprofile.options | 1 + 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 projects/skcms/iccprofile.dict diff --git a/projects/skcms/Dockerfile b/projects/skcms/Dockerfile index 797a00bb8..dffd98e6b 100644 --- a/projects/skcms/Dockerfile +++ b/projects/skcms/Dockerfile @@ -29,4 +29,4 @@ WORKDIR skcms COPY build.sh $SRC/ -COPY iccprofile.options $SRC/skcms/ \ No newline at end of file +COPY iccprofile.options iccprofile.dict $SRC/skcms/ \ No newline at end of file diff --git a/projects/skcms/build.sh b/projects/skcms/build.sh index af8e58f83..92d08f035 100644 --- a/projects/skcms/build.sh +++ b/projects/skcms/build.sh @@ -27,4 +27,6 @@ cp iccprofile.options $OUT/fuzz_iccprofile_transform.options # They all share the same seed corpus of icc profiles cp iccprofile_seed_corpus.zip $OUT/iccprofile_info_seed_corpus.zip cp iccprofile_seed_corpus.zip $OUT/iccprofile_atf_seed_corpus.zip -cp iccprofile_seed_corpus.zip $OUT/iccprofile_transform_seed_corpus.zip \ No newline at end of file +cp iccprofile_seed_corpus.zip $OUT/iccprofile_transform_seed_corpus.zip +# They all use the same dictionary file. +cp iccprofile.dict $OUT/iccprofile.dict diff --git a/projects/skcms/iccprofile.dict b/projects/skcms/iccprofile.dict new file mode 100644 index 000000000..dc36f0700 --- /dev/null +++ b/projects/skcms/iccprofile.dict @@ -0,0 +1,27 @@ +# Dict for ICC profiles parsed by skcms. + +"mft1" +"mft2" +"mAB " +"rXYZ" +"gXYZ" +"bXYZ" +"rTRC" +"gTRC" +"bTRC" +"kTRC" +"A2B0" +"curv" +"para" +"mluc" +"XYZ " +"Lab " +"RGB " +"CMYK" +"GRAY" +"mntr" +"scnr" +"prtr" +"spac" +"87a" +"89a" \ No newline at end of file diff --git a/projects/skcms/iccprofile.options b/projects/skcms/iccprofile.options index ef47bc82f..343142530 100644 --- a/projects/skcms/iccprofile.options +++ b/projects/skcms/iccprofile.options @@ -1,3 +1,4 @@ [libfuzzer] max_len = 200000 timeout = 10 +dict = iccprofile.dict