QTiffHandler: fix Coverity warning about unchecked return values


When TIFFIsTiled() returns true, then TIFFGetField(TILEWIDTH/LENGTH)
oughtn't fail, but don't depend on internals of libtiff (the docs
don't guarantee this), so check their return values, too.

Found by Coverity complaining that two out of 16 TIFFGetField() calls
didn't have their return values checked.

Amends 30301436b59efe7ff25991cbbaa388f6f1b4d66e (5.9).

Pick-to: 6.12 6.11 6.8
Coverity-Id: 178800
Change-Id: I8aa8e2080b47ea0597170a46ddc86699f438d001
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
commit0f53243accb9bc74cf66d9cc61d337d66a939de3
parent09ce9eec78bb05f082ae846aeaba56e92247bfc2
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeThu, 23 Jul 2026 21:09:38 +0000