bug-enscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-enscript] [bug #31012] enscript seg faults while processing the con


From: Bruce Korb
Subject: [bug-enscript] [bug #31012] enscript seg faults while processing the config file
Date: Fri, 10 Sep 2010 23:09:45 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

URL:
  <http://savannah.gnu.org/bugs/?31012>

                 Summary: enscript seg faults while processing the config
file
                 Project: GNU Enscript
            Submitted by: bkorb
            Submitted on: Fri 10 Sep 2010 11:09:44 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Even if the config file contains invalid text, it should
not fault:

Program received signal SIGSEGV, Segmentation fault.
0x00000037330797c0 in strlen () from /lib64/libc.so.6
(gdb) bt
#0  0x00000037330797c0 in strlen () from /lib64/libc.so.6
#1  0x0000003733046b69 in vfprintf () from /lib64/libc.so.6
#2  0x0000003733047f36 in buffered_vfprintf () from /lib64/libc.so.6
#3  0x0000003733042a1c in vfprintf () from /lib64/libc.so.6
#4  0x000000373304d358 in fprintf () from /lib64/libc.so.6
#5  0x000000000040fa2b in read_config (path=0x7fffe6819d38 "/vmem/bkorb",
   file=0x41c7c8 ".enscriptrc") at ../../src/util.c:256
#6  0x00000000004026f4 in main (argc=2, argv=0x7fffe68189a8)
   at ../../src/main.c:1133
(gdb) f 5
#5  0x000000000040fa2b in read_config (path=0x7fffe6819d38 "/vmem/bkorb",
   file=0x41c7c8 ".enscriptrc") at ../../src/util.c:256
256               CHECK_TOKEN ();
(gdb) list
406               ul_angle_p = 1;
407             }
408           else if (MATCH (token, "UnderlayFont:"))
409             {
410               token2 = GET_TOKEN (NULL);
411               CHECK_TOKEN ();
412               if (!parse_font_spec (token2, &ul_font, &ul_ptsize, NULL))
413                 CFG_FATAL ((stderr, _("malformed font spec: %s"),
token2));
414             }
415           else if (MATCH (token, "UnderlayGray:"))
$ cat ~/.enscriptrc
Printer: hp8000-duplex
Media: letter




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31012>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]