17 lines
672 B
Text
17 lines
672 B
Text
$NetBSD: patch-CVE-2017-7207,v 1.1 2017/04/05 20:11:01 tez Exp $
|
|
|
|
Fix for CVE-2017-7207 from
|
|
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=309eca4e0a31ea70dcc844812691439312dad091;hp=dd5da2cb3e08398ac6d86598b36b00994d058308
|
|
|
|
|
|
--- base/gdevmem.c.orig 2017-04-05 19:13:09.561063700 +0000
|
|
+++ base/gdevmem.c
|
|
@@ -562,6 +562,8 @@ mem_get_bits_rectangle(gx_device * dev,
|
|
GB_PACKING_CHUNKY | GB_COLORS_NATIVE | GB_ALPHA_NONE;
|
|
return_error(gs_error_rangecheck);
|
|
}
|
|
+ if (mdev->line_ptrs == 0x00)
|
|
+ return_error(gs_error_rangecheck);
|
|
if ((w <= 0) | (h <= 0)) {
|
|
if ((w | h) < 0)
|
|
return_error(gs_error_rangecheck);
|