diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-08-09 16:12:11 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-08-09 16:12:11 +0200 |
commit | ff5032452d022d8e79cba31ccdd113dd4825a866 (patch) | |
tree | 4022101169685b7f93249c90909ca39d54fb80fc /xps/xps_resource.c | |
parent | 432de66fa08a5417e3a08e0aba3cfeba4551aee4 (diff) | |
download | mupdf-ff5032452d022d8e79cba31ccdd113dd4825a866.tar.xz |
Fix bug 692284: return error for empty resource dictionaries.
Diffstat (limited to 'xps/xps_resource.c')
-rw-r--r-- | xps/xps_resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xps_resource.c b/xps/xps_resource.c index 7cbfe91f..c96f3619 100644 --- a/xps/xps_resource.c +++ b/xps/xps_resource.c @@ -144,9 +144,9 @@ xps_parse_resource_dictionary(xps_context *ctx, xps_resource **dictp, char *base } if (head) - { head->base_uri = fz_strdup(base_uri); - } + else + return fz_throw("empty resource dictionary"); *dictp = head; return fz_okay; |