Add decode testing to testpdfio

This commit is contained in:
Michael R Sweet
2021-06-21 16:03:05 -04:00
parent db8be28ff6
commit 01ca711ec8
2 changed files with 99 additions and 46 deletions

View File

@@ -448,6 +448,8 @@ _pdfioStreamOpen(pdfio_obj_t *obj, // I - Object
st->flate.next_in = (Bytef *)st->cbuffer;
st->flate.avail_in = (uInt)_pdfioFileRead(st->pdf, st->cbuffer, sizeof(st->cbuffer));
PDFIO_DEBUG("_pdfioStreamOpen: avail_in=%u\n", st->flate.avail_in);
if (inflateInit(&(st->flate)) != Z_OK)
{
_pdfioFileError(st->pdf, "Unable to start Flate filter.");