summaryrefslogtreecommitdiff
path: root/devices/gdevjpeg.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2019-03-07 18:03:00 +0000
committerChris Liddell <chris.liddell@artifex.com>2019-05-29 09:39:36 +0100
commit9de16a6637b73e35f79d2d622de403b24e6502f2 (patch)
treebc6fba44e03e9caab75968fda94a0cea73caf5e3 /devices/gdevjpeg.c
parent808021913baf763e07cc9eabc3716bfa507380ff (diff)
downloadghostpdl-9de16a6637b73e35f79d2d622de403b24e6502f2.tar.gz
Move FILE * operations behind new gp_file * API.
(squash of commits from filesec branch) Most of this commit is donkeywork conversions of calls from FILE * -> gp_file *, fwrite -> gp_fwrite etc. Pretty much every device is touched, along with the clist and parsing code. The more interesting changes are within gp.h (where the actual new API is defined), gpmisc.c (where the basic implementations live), and the platform specific levels (gp_mswin.c, gp_unifs.c etc where the platform specific implementations have been tweaked/renamed). File opening path validation All file opening routines now call a central routine for path validation. This then consults new entries in gs_lib_ctx to see if validation is enabled or not. If so, it validates the paths by seeing if they match. Simple C level functions for adding/removing/clearing paths, exposed through the gsapi level. Add 2 postscript operators for path control. <name> <string> .addcontrolpath - Add the given <string> (path) to the list of paths for controlset <name>, where <name> can be: /PermitFileReading /PermitFileWriting /PermitFileControl (Anything else -> rangecheck) - .activatepathcontrol - Enable path control. At this point PS cannot make any more changes, and all file access is checked.
Diffstat (limited to 'devices/gdevjpeg.c')
-rw-r--r--devices/gdevjpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdevjpeg.c b/devices/gdevjpeg.c
index 7ce6aac74..229e6ccb3 100644
--- a/devices/gdevjpeg.c
+++ b/devices/gdevjpeg.c
@@ -414,7 +414,7 @@ jpeg_get_initial_matrix(gx_device *dev, gs_matrix *pmat)
/* Send the page to the file. */
static int
-jpeg_print_page(gx_device_printer * pdev, FILE * prn_stream)
+jpeg_print_page(gx_device_printer * pdev, gp_file * prn_stream)
{
gx_device_jpeg *jdev = (gx_device_jpeg *) pdev;
gs_memory_t *mem = pdev->memory;