[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pdf-devel] [PATCH] Token reader update
From: |
Michael Gold |
Subject: |
[pdf-devel] [PATCH] Token reader update |
Date: |
Wed, 21 Oct 2009 03:24:59 -0400 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Here's a patch that makes several changes to the token reader, and fixes
a few other bugs. Please apply.
The token reader can now increase the buffer size as needed, to read
long strings and comments. This makes the comment 'continuation' flag
unnecessary, so it was removed.
Also:
* Don't store a leading '%' for comments.
* Ensure a non-null character follows a token's data buffer, unless the
token is null terminated.
* Call pdf_realloc correctly in pdf_buffer_resize.
* Ensure pdf_read_char can read more than 4096 bytes of data (this
fixes the bug I reported in a previous message, and includes the
test case I posted with the report).
-- Michael
tokr-fixes.diff
Description: Text Data
signature.asc
Description: Digital signature
- [pdf-devel] [PATCH] Token reader update,
Michael Gold <=