Bug 3776
| Summary: | lpc dumps core on *any* command | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | ms |
| Component: | lpr | Assignee: | Bill Nottingham <notting> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.0 | CC: | rvokal |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 1999-07-12 14:22:57 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
ms
1999-06-28 13:33:50 UTC
what's your /etc/printcap look like? I still can't reproduce this. Can you get a stack trace? ack, could you try the debug version at: http://charlotte.redhat.com/~notting/ftp/lpr/lpr-0.35-1debug.i386.rpm, and get a stack trace from that? Fixed here:
--- lpc.c.orig Mon Jul 12 10:52:42 1999
+++ lpc.c Mon Jul 12 12:39:27 1999
@@ -180,7 +180,9 @@
{
register char *cp;
register char **argp = margv;
- int n;
+ /* the compiler doesn't initialize n, so it's value is bogus
+ and the for loop terminates without doing anything */
+ int n = 0;
margc = 0;
for (cp = cmdline; *cp && (cp - cmdline) < sizeof(cmdline) &&
n < 20; n++) {
Thanks for the patch & tracking this down. It's rather obvious in hindsight. Fixed in lpr-0.38-2. |