summaryrefslogtreecommitdiff
path: root/icc
diff options
context:
space:
mode:
Diffstat (limited to 'icc')
-rw-r--r--icc/Makefile.am22
-rw-r--r--icc/icc.c5
2 files changed, 27 insertions, 0 deletions
diff --git a/icc/Makefile.am b/icc/Makefile.am
new file mode 100644
index 0000000..a9ae092
--- /dev/null
+++ b/icc/Makefile.am
@@ -0,0 +1,22 @@
+include $(top_srcdir)/Makefile.shared
+
+LIBICC_VERSION=2.12
+
+lib_LTLIBRARIES = libicc.la
+
+libicc_la_SOURCES = icc.h iccV42.h icc.c iccstd.c
+libicc_la_LDFLAGS = -version-number $(shell echo $(LIBICC_VERSION) | tr . :):0
+
+include_HEADERS = icc.h iccV42.h
+
+LDADD = libicc.la
+
+bin_PROGRAMS = iccdump icclu
+
+check_PROGRAMS = icctest iccrw lutest
+
+refdir = $(datadir)/color/argyll/ref
+
+ref_DATA = $(wildcard *.icm)
+
+EXTRA_DIST = License.txt Readme.txt
diff --git a/icc/icc.c b/icc/icc.c
index 68668d0..95dc0e9 100644
--- a/icc/icc.c
+++ b/icc/icc.c
@@ -6348,6 +6348,11 @@ static int icmLut_read(
p->clutPoints = read_UInt8Number(bp+10);
/* Sanity check */
+ if (p->inputChan < 1) {
+ sprintf(icp->err,"icmLut_read: No input channels!");
+ return icp->errc = 1;
+ }
+
if (p->inputChan > MAX_CHAN) {
sprintf(icp->err,"icmLut_read: Can't handle > %d input channels\n",MAX_CHAN);
return icp->errc = 1;