AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2007.06.29 08:38 "[Tiff] (no subject)", by
2007.06.29 13:17 "Re: [Tiff] (no subject)", by Andrey Kiselev

2007.06.29 08:38 "[Tiff] (no subject)", by

Hi,

I try to combine tiff files into single one. But my files size is greater than 100Mo, and I get this error: "Error, no space for image buffer."

is it because not enough space can be allocated? or maybe my file is corrupted?

In tiffcp.c:

int status = 0;
        tdata_t buf = NULL;
        tsize_t scanlinesize = TIFFRasterScanlineSize(in);
        tsize_t bytes = scanlinesize * (tsize_t)imagelength;
        /*
         * XXX: Check for integer overflow.
         */
        if (scanlinesize
            && imagelength
            && bytes / (tsize_t)imagelength == scanlinesize) {
....
} else {
                TIFFError(TIFFFileName(in), "Error, no space for image buffer");
        }

Thanks.