Browse Source

- bugfix, fixed ICC profile size calculation based on short bitmask, thanks to Jörg for hint

pull/3/head v0.2.1
Andreas Romeyke 4 years ago
parent
commit
9e519a574c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/validate_icc/check_icc_header.c

+ 1
- 1
src/validate_icc/check_icc_header.c View File

@ -25,7 +25,7 @@ int parse_icc_header_v240_v430(unsigned long iccsize, char * iccdata, unsigned l
((iccdata[1] & 0x00ff) <<16) |
((iccdata[2] & 0x00ff) <<8) |
(iccdata[3] & 0x00ff)
) & 0xffff;
) & 0xffffffff;
INFO("ICC: profilesize=%li %0x\n", profilesize, profilesize);
if (profilesize != iccsize) FAIL("commited ICC size (%li / 0x%04x) differs from encoded profilesize (%li / 0x%04x)", iccsize, iccsize, profilesize, profilesize);
/* -- */


Loading…
Cancel
Save