2018.01.16 09:58 "[Tiff] Reading custom TIFF_SSHORT tag causes assertion "we should never get here"", by Robert Pollak
Hello,
I have used libtiff to write TIFF files containing custom tags with the following TIFFFieldInfo:
{37023,-1,-1,TIFF_SSHORT,FIELD_CUSTOM, 1,1, "ProcessStatus"}
When I now read such a file with libtiff (4.0.6), the function TIFFFetchNormalTag reaches the default case with the line:
assert(0); /* we should never get here */
This happens because set_field_type becomes TIFF_SETGET_C16_SINT16, which is not listed in the switch statement (also on current Git master).
The assertion means that the tag is not read, doesn't it?
Best regards,
Robert