diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2014-07-12 19:42:01 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2014-07-12 19:42:01 +0300 |
commit | 6cebf5ad1d168843ab714b1e80d978f4ecbce1df (patch) | |
tree | 0dabadf55436e75d1337ed910843bd7ccca65b3b /utils | |
parent | c5b2aa37d58f054e3508845075991185f15430ff (diff) | |
download | lcms2-6cebf5ad1d168843ab714b1e80d978f4ecbce1df.tar.gz |
utils/jpgicc/iccjpeg.c: Fix check if unsigned variable 'total_length' is less than zero.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/jpgicc/iccjpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/jpgicc/iccjpeg.c b/utils/jpgicc/iccjpeg.c index aa96c8b..d08b4bd 100644 --- a/utils/jpgicc/iccjpeg.c +++ b/utils/jpgicc/iccjpeg.c @@ -217,7 +217,7 @@ read_icc_profile (j_decompress_ptr cinfo, total_length += data_length[seq_no]; } - if (total_length <= 0) + if (total_length == 0) return FALSE; /* found only empty markers? */ /* Allocate space for assembled data */ |