summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-op-run.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-03-16 01:19:22 +0000
committerRobin Watts <robin.watts@artifex.com>2014-03-16 01:21:56 +0000
commit2c1ec5347ae7c2b610c33f5cd0a034d9c8345d77 (patch)
treec4d48580b9050c00fcb82f60e018745410a11032 /source/pdf/pdf-op-run.c
parentd72f487da02c40b4872184ce4f791f1bd5ce760b (diff)
downloadmupdf-2c1ec5347ae7c2b610c33f5cd0a034d9c8345d77.tar.xz
Avoid premature dropping of objects in pdf_dict_put
When inserting a new value into a dictionary, if replacing an existing entry, ensure we keep the new value before dropping the old one. This is important in the case where (for example) the existing value is "[ object ]" and the new value is "object". If we drop the array and that loses the only reference to object, we can find that we have lost the value we are adding.
Diffstat (limited to 'source/pdf/pdf-op-run.c')
0 files changed, 0 insertions, 0 deletions