Index: cups/ppd.c =================================================================== --- cups/ppd.c (revision 9455) +++ cups/ppd.c (working copy) @@ -357,7 +357,8 @@ _("Illegal whitespace character"), _("Bad custom parameter"), _("Missing option keyword"), - _("Bad value string") + _("Bad value string"), + _("Missing CloseGroup") }; @@ -1934,6 +1935,16 @@ _cupsStrFree(string); } + /* + * Check for a missing CloseGroup... + */ + + if (group && cg->ppd_conform == PPD_CONFORM_STRICT) + { + cg->ppd_status = PPD_MISSING_CLOSE_GROUP; + goto error; + } + ppd_free(line.buffer); /* Index: cups/ppd.h =================================================================== --- cups/ppd.h (revision 9455) +++ cups/ppd.h (working copy) @@ -3,7 +3,7 @@ * * PostScript Printer Description definitions for CUPS. * - * Copyright 2007-2010 by Apple Inc. + * Copyright 2007-2011 by Apple Inc. * Copyright 1997-2007 by Easy Software Products, all rights reserved. * * These coded instructions, statements, and computer programs are the @@ -118,6 +118,7 @@ PPD_BAD_CUSTOM_PARAM, /* Bad custom parameter */ PPD_MISSING_OPTION_KEYWORD, /* Missing option keyword */ PPD_BAD_VALUE, /* Bad value string */ + PPD_MISSING_CLOSE_GROUP, /* Missing CloseGroup */ PPD_MAX_STATUS /* @private@ */ } ppd_status_t;