diff options
Diffstat (limited to 'pdf/pdf_lex.c')
-rw-r--r-- | pdf/pdf_lex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf/pdf_lex.c b/pdf/pdf_lex.c index 31d8a825..23a5781f 100644 --- a/pdf/pdf_lex.c +++ b/pdf/pdf_lex.c @@ -330,8 +330,10 @@ lex_hex_string(fz_stream *f, char *buf, int n) } break; case '>': - default: + case EOF: goto end; + default: + fz_warn("ignoring invalid character in hex string: '%c'", c); } } end: |