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

Comments

Projects
None yet
1 participant
@michaelrsweet
Collaborator

michaelrsweet commented Apr 6, 2006

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

This comment has been minimized.

Collaborator

michaelrsweet commented Apr 7, 2006

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

This comment has been minimized.

Collaborator

michaelrsweet commented Apr 7, 2006

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.

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

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