Bug 54281 - segmentation fault of dlh
segmentation fault of dlh
Status: CLOSED WONTFIX
Product: Red Hat Powertools
Classification: Retired
Component: dlh (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: bero
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-10-02 19:26 EDT by Tzafrir Cohen
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-01-17 10:47:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tzafrir Cohen 2001-10-02 19:26:44 EDT
Description of Problem:

segmentation fault on certain inputs

Version-Release number of selected component (if applicable):
0.7d

How Reproducible:

run with the appropriate document.

I am unable to upload  a sample document. However, the fix to that seems to
be:


diff -ur dlh-0.7d/src/dlh.c dlh-new/src/dlh.c
--- dlh-0.7d/src/dlh.c  Wed Oct  3 00:06:17 2001
+++ dlh-new/src/dlh.c   Wed Oct  3 00:06:22 2001
@@ -675,7 +675,7 @@
 static void
 cmd_line_break (struct call * c)
 {
-    if (env && env->e && strcmp(env->e->name, "tabbing") == 0) {
+    if (env && env->e && env->e->name && strcmp(env->e->name, "tabbing")
== 0) {
        fputs("</td></tr>\n", out->file);
        beginning_of_line_offset = ftell(out->file);
        fputs("<tr valign=bottom><td>", out->file);

It is, in fact, quite similar to the existing dlh-0.7d-fix in the source
RPM.



Steps to Reproduce:
1. 
2. 
3. 

Actual Results:


Expected Results:


Additional Information:
Comment 1 Bernhard Rosenkraenzer 2002-02-21 09:36:27 EST
Since Powertools has been discontinued, there won't be a future release to fix this in.

Note You need to log in before you can comment on or make changes to this bug.