diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-06-22 17:29:26 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2018-06-22 17:29:26 +0200 |
commit | 1b65f9eb1beef0d1a41a4d59c89e4acd193a1a3f (patch) | |
tree | 6e367499ea93c47a15e9ea55649989cc977b51f4 /poppler/CairoOutputDev.cc | |
parent | da349184c61034ac5818efe90d426de6af2c74d7 (diff) |
Gfx:Generalize protection against a pattern drawing itself
fixes oss-fuzz/8929
Diffstat (limited to 'poppler/CairoOutputDev.cc')
-rw-r--r-- | poppler/CairoOutputDev.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index 18124b8f..8e8102e9 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -960,7 +960,7 @@ GBool CairoOutputDev::tilingPatternFill(GfxState *state, Gfx *gfxA, Catalog *cat adjusted_stroke_width_tmp = adjusted_stroke_width; maskTmp = mask; mask = nullptr; - gfx = new Gfx(doc, this, resDict, &box, nullptr, nullptr, nullptr, gfxA->getXRef()); + gfx = new Gfx(doc, this, resDict, &box, nullptr, nullptr, nullptr, gfxA); if (paintType == 2) inUncoloredPattern = gTrue; gfx->display(str); |