[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1830-g328d27b
[email protected] (Julian Smith) Fri, 8 Nov 2019 11:35:24 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, master has been updated
via 328d27b3cccc89c4ff60529106489a9a635f0f72 (commit)
from 68aeff88e95ccfd1af430fe180597d624ad9f47e (commit)
----------------------------------------------------------------------
commit 328d27b3cccc89c4ff60529106489a9a635f0f72
Author: Julian Smith <[email protected]>
Date: Fri Nov 8 11:32:41 2019 +0000
Bug 701854: bj10v_print_page(): increase buffer by one byte to give space for sentinel.
Fixes:
./sanbin/gs -r928 -sOutputFile=tmp -sDEVICE=bj10v ../bug-701854.ps
diff --git a/contrib/japanese/gdev10v.c b/contrib/japanese/gdev10v.c
index aa641de..f4c349d 100644
--- a/contrib/japanese/gdev10v.c
+++ b/contrib/japanese/gdev10v.c
@@ -219,7 +219,8 @@ bj10v_print_page(gx_device_printer *pdev, gp_file *prn_stream)
int x_skip_unit = bytes_per_column * (xres / 180);
int y_skip_unit = (yres / 180);
byte *in = (byte *)gs_malloc(pdev->memory->non_gc_memory, 8, line_size, "bj10v_print_page(in)");
- byte *out = (byte *)gs_malloc(pdev->memory->non_gc_memory, bits_per_column, line_size, "bj10v_print_page(out)");
+ /* We need one extra byte in <out> for our sentinel. */
+ byte *out = (byte *)gs_malloc(pdev->memory->non_gc_memory, bits_per_column * line_size + 1, 1, "bj10v_print_page(out)");
int lnum = 0;
int y_skip = 0;
int code = 0;
Summary of changes:
contrib/japanese/gdev10v.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)