summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2008-10-02 23:28:25 +0200
committerTor Andersson <tor@ghostscript.com>2008-10-02 23:28:25 +0200
commitf9cd122bd24fdaf2793e996ca043259e3931346d (patch)
treecbaa7a8b5af5f84b543a073e34f2ee784b185e9b
parenta24c2e9d163a56bd597bb9400607e494f8341c6e (diff)
downloadmupdf-f9cd122bd24fdaf2793e996ca043259e3931346d.tar.xz
Warn and continue after encountering unknown keywords.
-rw-r--r--mupdf/pdf_interpret.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mupdf/pdf_interpret.c b/mupdf/pdf_interpret.c
index 60bf1185..73996294 100644
--- a/mupdf/pdf_interpret.c
+++ b/mupdf/pdf_interpret.c
@@ -966,7 +966,7 @@ Lsetcolor:
{
/* don't fail on unknown keywords if braced by BX/EX */
if (!csi->xbalance)
- goto syntaxerror;
+ fz_warn("unknown keyword: %s", buf);
}
}
@@ -1226,7 +1226,7 @@ Lsetcolor:
default:
/* don't fail on unknown keywords if braced by BX/EX */
if (!csi->xbalance)
- goto syntaxerror;
+ fz_warn("unknown keyword: %s", buf);
}
return fz_okay;