Lines Matching defs:limit
201 // which defaults to 2**24 = 16777216 pixels. Due to the above memory limit,
206 // larger than that, and it still fits in the overall size limit, you can
4262 unsigned int cur, limit, old_limit;
4264 if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG");
4266 limit = old_limit = (unsigned) (z->zout_end - z->zout_start);
4268 while (cur + n > limit) {
4269 if(limit > UINT_MAX / 2) return stbi__err("outofmem", "Out of memory");
4270 limit *= 2;
4272 q = (char *) STBI_REALLOC_SIZED(z->zout_start, old_limit, limit);
4277 z->zout_end = q + limit;
5181 if (c.length > (1u << 30)) return stbi__err("IDAT size limit", "IDAT section larger than 2^30 bytes");