If `IMAGELIB_LEGACY` is defined, this will lead to a null pointer dereference after the `#endif` (`if (readbuffer->offset...`)