mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-07-19 07:19:58 +02:00
Fix conversion of nul-containing strings to binary.
Move key length checks to a common place.
This commit is contained in:
@ -400,6 +400,9 @@ _pdfioValueRead(pdfio_file_t *pdf, // I - PDF file
|
||||
|
||||
tempptr = tb->bufptr;
|
||||
|
||||
while (tempptr < tb->bufend && isspace(*tempptr & 255))
|
||||
tempptr ++; // Skip whitespace as needed...
|
||||
|
||||
if (tempptr < tb->bufend && isdigit(*tempptr & 255))
|
||||
{
|
||||
// Integer...
|
||||
@ -412,7 +415,7 @@ _pdfioValueRead(pdfio_file_t *pdf, // I - PDF file
|
||||
}
|
||||
|
||||
while (tempptr < tb->bufend && isspace(*tempptr & 255))
|
||||
tempptr ++;
|
||||
tempptr ++; // Skip whitespace
|
||||
|
||||
if (tempptr < tb->bufend && *tempptr == 'R')
|
||||
{
|
||||
|
Reference in New Issue
Block a user