tiffdec: Prevent illegal memory access caused by recycled pointers.