Home | History | Annotate | Download | only in libtests

Lines Matching refs:chunklen

770    png_uint_32        chunklen; /* Length of chunk+overhead (chunkpos >= 8) */
876 ps->chunklen = 16;
903 ps->chunklen = 16;
973 if (ps->chunkpos != 0U || ps->chunktype != 0U || ps->chunklen != 0U ||
993 ps->chunklen = 16;
1289 png_uint_32 chunklen = ps->chunklen;
1314 chunklen = (chunklen << 8) + b;
1328 chunklen &= 0xffffffffU;
1329 if (chunklen > 0x7fffffffU)
1335 if (chunklen > ~ps->IDAT_size)
1338 ps->IDAT_size += chunklen;
1344 chunklen += 12; /* for header and CRC */
1355 if (cb > chunklen - chunkpos/* bytes left in chunk*/)
1356 cb = (png_size_t)/*SAFE*/(chunklen - chunkpos);
1364 if (chunkpos >= chunklen) /* must be equal */
1365 chunkpos = chunktype = chunklen = 0;
1372 ps->chunklen = chunklen;
1471 png_uint_32 chunklen = ps->chunklen;
1478 if (chunkpos >= chunklen) /* end of last chunk */
1484 chunklen = png_get_uint_32(buffer) + 12U;
1524 if (chunkpos != chunklen-4U)
1529 * chunklen-4U-chunkpos must be zero, we just need to skip the
1590 if (chunkpos < chunklen-4U)
1600 if (avail > (chunklen-4U) - chunkpos)
1601 avail = (uInt)/*SAFE*/((chunklen-4U) - chunkpos);
1656 b = chunklen - 12U;
1675 if (avail > chunklen - chunkpos)
1676 avail = (png_size_t)/*SAFE*/(chunklen - chunkpos);
1686 if (chunkpos >= chunklen && max-st >= min &&
1694 ps->chunklen = chunklen;
2110 ps->chunklen = 16;