diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-08 13:40:21 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-08 13:40:21 +0000 |
commit | c114eac6b2d2e2c03bb6695d0087bb11ba829bb0 (patch) | |
tree | d0e2955792415ea4ae2b7b733e4d161d7c59c50a /fitz | |
parent | e9d1966e2427f630fb2a7c2a1d322ae35db6efc8 (diff) | |
download | mupdf-c114eac6b2d2e2c03bb6695d0087bb11ba829bb0.tar.xz |
Fix SEGV with "1439 - color softmask fails to draw jpx image.pdf"
Another missed fz_rethrow. Also, ensure that fz_drop_buffer copes
with NULL input.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/stm_buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/stm_buffer.c b/fitz/stm_buffer.c index eb96cd2f..8eb2bedf 100644 --- a/fitz/stm_buffer.c +++ b/fitz/stm_buffer.c @@ -26,6 +26,8 @@ fz_keep_buffer(fz_buffer *buf) void fz_drop_buffer(fz_context *ctx, fz_buffer *buf) { + if (buf == NULL) + return; if (--buf->refs == 0) { fz_free(ctx, buf->data); |