16 lines
701 B
Text
16 lines
701 B
Text
$NetBSD: patch-CVE-2016-10220,v 1.1 2017/04/18 22:07:07 tez Exp $
|
|
|
|
Fix for CVE-2016-10220 from
|
|
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=daf85701dab05f17e924a48a81edc9195b4a04e8;hp=2299c9a25fc9ae7b59752f1795f8b53920901c80
|
|
|
|
|
|
--- base/gsdevmem.c.orig 2017-04-05 21:01:59.873181700 +0000
|
|
+++ base/gsdevmem.c
|
|
@@ -223,6 +223,7 @@ gs_makewordimagedevice(gx_device ** pnew
|
|
|
|
if (pnew == 0)
|
|
return_error(gs_error_VMerror);
|
|
+ memset(pnew, 0x00, st_device_memory.ssize);
|
|
code = gs_initialize_wordimagedevice(pnew, pmat, width, height,
|
|
colors, num_colors, word_oriented,
|
|
page_device, mem);
|