diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-01-15 12:10:58 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-01-15 12:11:51 +0000 |
commit | 364a3883326b90bf078d488909ba3203450da3d3 (patch) | |
tree | f0dfc5422ded8a1a65a44bbcdb7655c0fea32f8d /devices/gdevdsp.c | |
parent | f9723a92bcb3ab1de8f5cf16da5b5e6c807eeda2 (diff) | |
download | ghostpdl-364a3883326b90bf078d488909ba3203450da3d3.tar.gz |
Bug 703301: Fix logic error in display device structure checks.
Thanks to Pino Toscano for spotting this.
Diffstat (limited to 'devices/gdevdsp.c')
-rw-r--r-- | devices/gdevdsp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/devices/gdevdsp.c b/devices/gdevdsp.c index 0a66a0278..52087f8d6 100644 --- a/devices/gdevdsp.c +++ b/devices/gdevdsp.c @@ -1430,9 +1430,6 @@ static int display_check_structure(gx_device_display *ddev) } else if (ddev->callback->size == sizeof(struct display_callback_v2_s)) { /* V2 structure with added display_separation callback */ - if (ddev->callback->size != sizeof(display_callback)) - return_error(gs_error_rangecheck); - if (ddev->callback->version_major != DISPLAY_VERSION_MAJOR_V2) return_error(gs_error_rangecheck); |