diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-08-24 00:25:19 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-08-24 17:36:15 +0800 |
commit | a667ff91bcaff7d488d1e5e725d736e07b6266a6 (patch) | |
tree | dbf12a2a8a6c0b18ac241e86a3634b401bdc513e | |
parent | c875791e9b4f76bfa479a0e3fdc3dc49708e9279 (diff) | |
download | mupdf-a667ff91bcaff7d488d1e5e725d736e07b6266a6.tar.xz |
Do not resolve PDF dict keys before using them.
Only direct PDF name objects should be used as arguments,
indirect PDF name objects cannot be used.
-rw-r--r-- | source/pdf/pdf-object.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index 8a7e5a9b..71d009d9 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -1244,7 +1244,6 @@ pdf_dict_put(fz_context *ctx, pdf_obj *obj, pdf_obj *key, pdf_obj *val) RESOLVE(obj); if (!OBJ_IS_DICT(obj)) fz_throw(ctx, FZ_ERROR_GENERIC, "not a dict (%s)", pdf_objkindstr(obj)); - RESOLVE(key); if (!OBJ_IS_NAME(key)) fz_throw(ctx, FZ_ERROR_GENERIC, "key is not a name (%s)", pdf_objkindstr(obj)); if (!val) @@ -1516,7 +1515,6 @@ pdf_dict_dels(fz_context *ctx, pdf_obj *obj, const char *key) void pdf_dict_del(fz_context *ctx, pdf_obj *obj, pdf_obj *key) { - RESOLVE(key); if (!OBJ_IS_NAME(key)) fz_throw(ctx, FZ_ERROR_GENERIC, "key is not a name (%s)", pdf_objkindstr(key)); |