Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cupstestppd segfaults on some broken PPDs #1268

Closed
michaelrsweet opened this issue Sep 12, 2005 · 3 comments
Closed

cupstestppd segfaults on some broken PPDs #1268

michaelrsweet opened this issue Sep 12, 2005 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.1.23
CUPS.org User: kssingvo.suse

We got a broken PPD, where cupstestppd segfaults:

cupstestppd /tmp/CLP-510splc.ppd
/tmp/CLP-510splc.ppd: FAIL
FAIL REQUIRED DefaultImageableArea
REF: Page 102, section 5.15.
Segmentation fault

Attached is broken PPD

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: kssingvo.suse

Attached is a suggested fix (trivial one :-)

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"cups-1.1.23-cupstestppd.patch":

--- cups-1.1.23/systemv/cupstestppd.c.orig 2005-09-12 15:04:52.000000000 +0200
+++ cups-1.1.23/systemv/cupstestppd.c 2005-09-12 15:09:48.000000000 +0200
@@ -340,7 +340,7 @@
puts(" PASS DefaultImageableArea");
}

  •  if (ppdFindAttr(ppd, "DefaultPaperDimension", NULL) == NULL)
    
  •  if ((attr = ppdFindAttr(ppd, "DefaultPaperDimension", NULL)) == NULL)
    
    {
    if (verbose >= 0)
    {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant