mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-30 07:42:27 +02:00
Increase token buffer to 256 bytes, to avoid overflow scenarios.
Add _pdfioTokenFlush to manually flush the token buffer. Add more debug printfs.
This commit is contained in:
@@ -524,6 +524,8 @@ _pdfioArrayRead(pdfio_file_t *pdf, // I - PDF file
|
||||
_pdfio_value_t value; // Value
|
||||
|
||||
|
||||
PDFIO_DEBUG("_pdfioArrayRead(pdf=%p, tb=%p)\n", pdf, tb);
|
||||
|
||||
// Create an array...
|
||||
array = pdfioArrayCreate(pdf);
|
||||
|
||||
@@ -541,6 +543,10 @@ _pdfioArrayRead(pdfio_file_t *pdf, // I - PDF file
|
||||
if (!_pdfioValueRead(pdf, tb, &value))
|
||||
break;
|
||||
|
||||
PDFIO_DEBUG("_pdfioArrayRead(%p): Appending ", (void *)array);
|
||||
PDFIO_DEBUG_VALUE(&value);
|
||||
PDFIO_DEBUG("\n");
|
||||
|
||||
append_value(array, &value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user