Bug 55634
| Summary: | lpq (lpr-0.50.1-1) segfaults when trying to access a queue with entries in it. | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Michael McConnell <linux> |
| Component: | lpr | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED ERRATA | QA Contact: | Brock Organ <borgan> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-12-18 22:43:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michael McConnell
2001-11-03 12:28:54 UTC
My printer configuration: Epson Stylus Color 880, connected via parallel port. Using Epson Stylus Color (UP) driver on /dev/lp0, with rhs-printfilters-1.63-4.rh6.2.i386.rpm installed. I get the same behavior (segfault) for a remote lpd printer. Going back from package lpr-0.50.1-1 to lpr-0.50-7.6.x fixed the problem. ftp://updates.redhat.com/6.2/en/os/i386/lpr-0.50-7.6.x.i386.rpm This line has been lost from previous lpr-0.50 version. This makes sense,
when cp here previously has a NULL value taken from the
(cp = checkremote()) assignment fews lines above.
--- lpr-0.50.1/common_source/displayq.c.bak Tue Nov 6 10:40:59 2001
+++ lpr-0.50.1/common_source/displayq.c Tue Nov 6 10:41:15 2001
@@ -159,6 +159,7 @@
warn();
else {
/* get daemon pid */
+
cp = current;
ep = cp + sizeof(current) - 1;
while ((c = getc(fp)) != EOF && c != '\n' && cp < ep)
cp++;
Grumble. Will fix (again). This is fixed now. |