Fix: correct check for Iris image dimensions

Mistake in [0], missed width check.

[0]: 7a23d7aba4
This commit is contained in:
Campbell Barton
2025-04-10 10:50:10 +10:00
parent 4a97a807e5
commit 24f8819c78

View File

@@ -260,7 +260,7 @@ ImBuf *imb_loadiris(const uchar *mem, size_t size, int flags, ImFileColorSpace &
fprintf(stderr, "%s: channels over 8 not supported\n", __func__);
return nullptr;
}
if (image.zsize == 0 || image.ysize == 0) {
if (image.xsize == 0 || image.ysize == 0 || image.zsize == 0) {
fprintf(stderr, "%s: zero size image found\n", __func__);
return nullptr;
}