Opened 15 years ago

Closed 15 years ago

#2488 closed defect (fixed)

ESP Ghostscript security issue

Reported by: Randy McMurchy Owned by: blfs-book@…
Priority: high Milestone: 6.3
Component: BOOK Version: SVN
Severity: major Keywords:


Alexander wrote in BLFS-Dev:

Randy McMurchy wrote:

The short answer is that ESP GS will probably stay in the book as is until after BLFS-6.3 has been released.

Even though my FreeBSD installation received a security advisory (stack-based buffer overflow) against a newer (8.61) GPL version of Ghostscript? See, it applies to Linux, too.

There's a patch that is reported to fix it. This patch should be tested and implemented into the book if it works as expected.

Here is the patch (from

--- src/zicc.c +++ src/zicc.c 2008-02-05 16:11:59.000000000 +0000 @@ -77,6 +77,9 @@ zseticcspace(i_ctx_t * i_ctx_p)

dict_find_string(op, "N", &pnval); ncomps = pnval->value.intval;

+ if (2*ncomps > sizeof(range_buff)/sizeof(float)) + return_error(e_rangecheck); +

/* verify the DataSource entry */ if (dict_find_string(op, "DataSource", &pstrmval) <= 0)


Change History (1)

comment:1 by Randy McMurchy, 15 years ago

Resolution: fixed
Status: newclosed

Added the patch to the ESP Ghostscript instructions. Thanks Alexander!

Note: See TracTickets for help on using tickets.