mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08: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
|
||||
{
|
||||
type = tt_bad;
|
||||
QTC::TC("qpdf", "QPDF_Tokenizer bad (");
|
||||
QTC::TC("qpdf", "QPDF_Tokenizer bad hexstring character");
|
||||
error_message = std::string("invalid character (") +
|
||||
ch + ") in hexstring";
|
||||
state = st_token_ready;
|
||||
@ -439,7 +439,7 @@ QPDFTokenizer::presentEOF()
|
||||
{
|
||||
QTC::TC("qpdf", "QPDF_Tokenizer EOF reading token",
|
||||
this->allow_eof ? 1 : 0);
|
||||
if (this->allow_eof)
|
||||
if ((this->allow_eof) && (state == st_top))
|
||||
{
|
||||
type = tt_eof;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ QPDFObjectHandle bad dictionary close 0
|
||||
QPDF can't find xref 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 bad name 0
|
||||
QPDF_Stream invalid filter 0
|
||||
|
Loading…
Reference in New Issue
Block a user