Add CIFF bound checks like the TIFF ones
Add CIFF bound checks like the TIFF ones

CIFF has a similar method for reading where the number
of entries is fetched from the file. Do the same checking
of offsets and handling of errors that was already done
for TIFF.

LebedevRI/rawspeed,darktable-org/rawspeed,anarsoul/rawspeed,LebedevRI/rawspeed,darktable-org/rawspeed,darktable-org/rawspeed,darktable-org/rawspeed,LebedevRI/rawspeed,darktable-org/rawspeed,LebedevRI/rawspeed,klauspost/rawspeed,anarsoul/rawspeed,klauspost/rawspeed,anarsoul/rawspeed,LebedevRI/rawspeed