mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 03:18:59 +00:00
Minor fixes to tokenizer
This commit is contained in:
parent
aa2cfad61a
commit
13d9756a45
@ -404,7 +404,7 @@ QPDFTokenizer::presentCharacter(char ch)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = tt_bad;
|
type = tt_bad;
|
||||||
QTC::TC("qpdf", "QPDF_Tokenizer bad (");
|
QTC::TC("qpdf", "QPDF_Tokenizer bad hexstring character");
|
||||||
error_message = std::string("invalid character (") +
|
error_message = std::string("invalid character (") +
|
||||||
ch + ") in hexstring";
|
ch + ") in hexstring";
|
||||||
state = st_token_ready;
|
state = st_token_ready;
|
||||||
@ -439,7 +439,7 @@ QPDFTokenizer::presentEOF()
|
|||||||
{
|
{
|
||||||
QTC::TC("qpdf", "QPDF_Tokenizer EOF reading token",
|
QTC::TC("qpdf", "QPDF_Tokenizer EOF reading token",
|
||||||
this->allow_eof ? 1 : 0);
|
this->allow_eof ? 1 : 0);
|
||||||
if (this->allow_eof)
|
if ((this->allow_eof) && (state == st_top))
|
||||||
{
|
{
|
||||||
type = tt_eof;
|
type = tt_eof;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ QPDFObjectHandle bad dictionary close 0
|
|||||||
QPDF can't find xref 0
|
QPDF can't find xref 0
|
||||||
QPDF_Tokenizer bad ) 0
|
QPDF_Tokenizer bad ) 0
|
||||||
QPDF_Tokenizer bad > 0
|
QPDF_Tokenizer bad > 0
|
||||||
QPDF_Tokenizer bad ( 0
|
QPDF_Tokenizer bad hexstring character 0
|
||||||
QPDF_Tokenizer null in name 0
|
QPDF_Tokenizer null in name 0
|
||||||
QPDF_Tokenizer bad name 0
|
QPDF_Tokenizer bad name 0
|
||||||
QPDF_Stream invalid filter 0
|
QPDF_Stream invalid filter 0
|
||||||
|
Loading…
Reference in New Issue
Block a user