Browse Source

- bugfix, abort with tif_fails() if no offset is used

pull/3/head
Andreas Romeyke 4 years ago
parent
commit
c3409478c2
  1. 4
      src/tagrules/check_icc.c

4
src/tagrules/check_icc.c

@ -33,10 +33,8 @@ ret_t check_icc(ctiff_t * ctif ) {
offset_t offset = read_offsetdata(ctif, ifd_entry.data32offset, count, ifd_entry.datatype);
icc_profile = (char *)offset.data32p;
} else {
perror("Should not occure");
return tif_fails_tag( TIFFTAG_ICCPROFILE, "pointing to an offset", "encoded as value instead as offset, but there is no enough space to hold it");
}
break;
}
default: { /* none */

Loading…
Cancel
Save