TagOffset = SpGetUInt32 (&Ptr);if (ProfileSize < TagOffset) return SpStatBadProfileDir;...TagSize = SpGetUInt32 (&Ptr);if (ProfileSize < TagOffset + TagSize) return SpStatBadProfileDir;...Ptr = (KpInt32_t *) malloc ((unsigned int)numBytes+HEADER);
ush count[17], weight[17], start[18], *p;...for (i = 0; i < (unsigned)nchar; i++) count[bitlen[i]]++;
if (sp->cinfo.d.image_width != segment_width || sp->cinfo.d.image_height != segment_height) { TIFFWarningExt(tif->tif_clientdata, module, "Improper JPEG strip/tile size, expected %dx%d, got %dx%d",