diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-03-19 13:53:45 +0100 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-13 11:28:25 +0200 |
commit | dc2ba49207af71193f1390d84bba4e15aeea0ce0 (patch) | |
tree | 79c2a51cb5fa2b87800b1113e0015a7108cd2eb3 /devices/gdevpbm.c | |
parent | Import Ghostscript 9.50 (diff) | |
download | ghostscript-gpl-patches-dc2ba49207af71193f1390d84bba4e15aeea0ce0.tar.gz ghostscript-gpl-patches-dc2ba49207af71193f1390d84bba4e15aeea0ce0.tar.bz2 ghostscript-gpl-patches-dc2ba49207af71193f1390d84bba4e15aeea0ce0.zip |
Import Ghostscript 9.52ghostscript-9.52
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'devices/gdevpbm.c')
-rw-r--r-- | devices/gdevpbm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/devices/gdevpbm.c b/devices/gdevpbm.c index 647349ed..412d0109 100644 --- a/devices/gdevpbm.c +++ b/devices/gdevpbm.c @@ -1054,6 +1054,8 @@ pnmcmyk_print_page(gx_device_printer *pdev, gp_file *pstream) !strncmp(pdev->fname, "/dev/null", min(strlen(pdev->fname), 9)); int (*row_proc) (gx_device_printer *, byte *, int, gp_file *); + if (data == NULL) + return_error(gs_error_VMerror); if (!output_is_nul) { if (gp_fprintf(pstream, "P5\n") < 0) { /* PGM raw */ code = gs_note_error(gs_error_ioerror); |