diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2016-09-07 09:58:50 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2016-09-13 16:23:25 +0100 |
commit | dbfde5f3400e97b6d9b71a6549ff419dcefc9a95 (patch) | |
tree | c101298a871d663319a593286be884e668650bde /devices | |
parent | 8e541e3e356624506720fddd26441a2c43d82024 (diff) | |
download | ghostpdl-dbfde5f3400e97b6d9b71a6549ff419dcefc9a95.tar.gz |
Bug 696599: cast disguised wrong type dereference.
The code was casting to a gx_device_printer to get to the BLS_force_memory
value, but since the target device for a clist device is no longer
necessarily a printer device, it wasn't guaranteed that the struct contained
that entry.
So move BLS_force_memory to the base device type (gx_device), so it's always
available.
Diffstat (limited to 'devices')
-rw-r--r-- | devices/gdevbit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/devices/gdevbit.c b/devices/gdevbit.c index 675d399af..5a4b17546 100644 --- a/devices/gdevbit.c +++ b/devices/gdevbit.c @@ -305,6 +305,7 @@ const gx_device_bit gs_bitrgbtags_device = 0 , /*LockSafetyParams*/ 0, /*band_offset_x*/ 0, /*band_offset_*/ + false, /*BLS_force_memory*/ {false}, /*sgr*/ 0, /*MaxPatternBitmap*/ 0, /*page_uses_transparency*/ |