-
Notifications
You must be signed in to change notification settings - Fork 457
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
rastertoepson filter crashes only with paper size A6 #5323
Comments
Yeah, we've never tested this driver with A6 media (wasn't even aware you could get A6 pin-fed media for a dot-matrix printer...) |
In Germany it is used a lot with carbon copy forms. And even without carbon copy if you have 10+ different forms you don't want to have printer trays for all of them. So the dot-matrix printers are ideal for that. Maybe this is the last use case of this legacy technology. |
OK, valgrind for the win - looks like OutputLine is writing beyond the end of the buffer for some reason. Investigating... |
When sending print jobs with the size A6 through this filter it crashes just at the end of the first page and the print job stays in the queue with "Filter Failed".
Code
Commenting this line removes the crash:
cups/filter/rastertoepson.c
Line 367 in addb17b
Because this issue exists only with A6 I assume that commenting this line may create other problems.
Tested with Ubuntu 18.04 and Centos 7. (affects both)
Tested with macOS Sierra 10.12.6 (is not affected by this bug)
Maybe a compiler issue with gcc?
Backtrace
Reproduction
rastertoepson-crash.zip
In this file there are 2 files:
For reproducing the crash run the following command:
The text was updated successfully, but these errors were encountered: