diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2022-03-24 16:54:02 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-03-28 17:57:07 +0100 |
commit | 74fcdb4671a45bc2f4b8803b58640661e2b3a615 (patch) | |
tree | 288c0f62f9686829daf48b0bc2c068b3e0644a44 | |
parent | d7b333fe3960076364ff46a2de32df43144875fa (diff) | |
download | ghostpdl-74fcdb4671a45bc2f4b8803b58640661e2b3a615.tar.gz |
Bug 705128: Fix division by zero causing matrix with NaNs.
This in turn causes MIN_INT phases, which upsets stuff in the
graphics library when attempting to fit a tile to a device
in copy_mono.
-rw-r--r-- | base/gximage3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/base/gximage3.c b/base/gximage3.c index 609e58ea8..cf5e31cb6 100644 --- a/base/gximage3.c +++ b/base/gximage3.c @@ -209,7 +209,8 @@ gx_begin_image3_generic(gx_device * dev, int code; /* Validate the parameters. */ - if (pim->Height <= 0 || pim->MaskDict.Height <= 0) + if (pim->Width <= 0 || pim->MaskDict.Width <= 0 || + pim->Height <= 0 || pim->MaskDict.Height <= 0) return_error(gs_error_rangecheck); switch (pim->InterleaveType) { default: |