Backport reading improvements/bug fixes from master.

This commit is contained in:
Michael R Sweet
2025-04-24 12:19:11 -04:00
parent f9c07a0346
commit 8f706b9fe7
5 changed files with 175 additions and 100 deletions

View File

@@ -259,7 +259,7 @@ _pdfioStreamCreate(
{
colors = 1;
}
else if (colors < 0 || colors > 4)
else if (colors < 0 || colors > 32)
{
_pdfioFileError(st->pdf, "Unsupported Colors value %d.", colors);
free(st);
@@ -532,7 +532,7 @@ _pdfioStreamOpen(pdfio_obj_t *obj, // I - Object
{
colors = 1;
}
else if (colors < 0 || colors > 4)
else if (colors < 0 || colors > 32)
{
_pdfioFileError(st->pdf, "Unsupported Colors value %d.", colors);
goto error;