diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index f07a43b..5ca0f0d 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -713,7 +713,8 @@ bool XCFImageFormat::composeTiles(XCFImage &xcf_image) // SANITY CHECK: Catch corrupted XCF image file where the width or height // of a tile is reported are bogus. See Bug# 234030. - if (layer.width > 32767 || layer.height > 32767 || layer.width * layer.height > 16384 * 16384) { + if (layer.width > 32767 || layer.height > 32767 + || (sizeof(void *) == 4 && layer.width * layer.height > 16384 * 16384)) { return false; }