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

pstops crash #1543

Closed
michaelrsweet opened this issue Apr 6, 2006 · 2 comments
Closed

pstops crash #1543

michaelrsweet opened this issue Apr 6, 2006 · 2 comments
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-current
CUPS.org User: mike

[From Jim Lovell]

There's a pstops crash too. It reproduces with this:

lpr -P test2 -o number-up=4 -o page-set=even -o page-ranges=1-3 "/usr/share/doc/cups/ssr.pdf"

Looks like when there's an empty page set then pageinfo is NULL around line 786.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

OK, for some reason no pages were getting selected for printing.

I'm adding a NULL guard for the "no pages" scenario, and am looking into check_range() to see why pages 5-8 didn't get printed 4-up...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Added a guard against 0-page output, and fixed check_range() to use the page number as-is for even/odd selection.

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