diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-02-02 00:37:51 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-02-02 15:49:15 +0100 |
commit | 4dcc6affe04368461310a21238f7e1871a752a05 (patch) | |
tree | 639e84accfc2bafcb625150fe6bedc0d62979c4f | |
parent | 8ec561d1bccc46e9db40a9f61310cd8b3763914e (diff) | |
download | mupdf-4dcc6affe04368461310a21238f7e1871a752a05.tar.xz |
Bug 698891: Keep colorspace for luminosity transparency group.
This was forgotten when a gray colorspace was used as a fallback
in case a colorspace was never set. Thanks to oss-fuzz for reporting.
-rw-r--r-- | source/pdf/pdf-op-run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c index 16c5c2f4..c51bb535 100644 --- a/source/pdf/pdf-op-run.c +++ b/source/pdf/pdf-op-run.c @@ -135,7 +135,7 @@ begin_softmask(fz_context *ctx, pdf_run_processor *pr, softmask_save *save) mask_colorspace = pdf_xobject_colorspace(ctx, softmask); if (gstate->luminosity && !mask_colorspace) - mask_colorspace = fz_device_gray(ctx); + mask_colorspace = fz_keep_colorspace(ctx, fz_device_gray(ctx)); fz_try(ctx) { |