diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 15:10:06 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 15:39:30 +0200 |
commit | 9915a386ea1dab21c5bbd4a0c8012dd13dbda301 (patch) | |
tree | 872ba59767d5eb146bffd17deb800511525c6129 /pdf/pdf_lex.c | |
parent | 5526e501b4447d6cbc6ed868a3c182dba22c1f5d (diff) | |
download | mupdf-9915a386ea1dab21c5bbd4a0c8012dd13dbda301.tar.xz |
Various patches from SumatraPDF.
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: |