[Pinfo-devel] [ pinfo-Bugs-303248 ] pinfo crashes on some regexps

noreply at alioth.debian.org noreply at alioth.debian.org
Wed Mar 22 13:49:00 UTC 2006


Bugs item #303248, was opened at 2006-03-18 19:43
You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=411490&aid=303248&group_id=30592

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: pinfo crashes on some regexps

Initial Comment:
pinfo 0.6.9, pl_PL.UTF-8 locale

pinfo exim
press ,,s'' key
enter: ][;',./

and pinfo will crash:
(gdb) where
#0  0x00002aaaaaee54d6 in regexec () from /lib64/libc.so.6
#1  0x00000000004152dd in info_add_highlights (pos=2, cursor=0, lines=612, column=0, message=0x6e6bd0) at video.c:286
#2  0x00000000004146cc in showscreen (message=0x6e6bd0,
    type=0x546e10 "File: exim.info,  Node: Top,  Next: Introduction,  Up: (dir)\n", lines=612, pos=2, cursor=0, column=0)
    at video.c:117
#3  0x0000000000407a67 in work (message=0x7fffffb43248, type=0x7fffffb43240, lines=0x7fffffb43250, id=0x537f50,
    tag_table_pos=432) at mainfunction.c:125
#4  0x0000000000403904 in main (argc=2, argv=0x7fffffb434b8) at pinfo.c:450
(gdb) frame 1
#1  0x00000000004152dd in info_add_highlights (pos=2, cursor=0, lines=612, column=0, message=0x6e6bd0) at video.c:286
286                                     while (!regexec(&h_regexp[j], str, 1, pmatch, 0))
(gdb) print h_regexp[j]
$8 = {buffer = 0x0, allocated = 0, used = 224, syntax = 4436732, fastmap = 0x0, translate = 0x0, re_nsub = 0,
  can_be_null = 0, regs_allocated = 0, fastmap_accurate = 0, no_sub = 0, not_bol = 0, not_eol = 0, newline_anchor = 0}
(gdb) print pmatch
$9 = {{rm_so = 0, rm_eo = 0}}


----------------------------------------------------------------------

>Comment By: Bas Zoetekouw (bas)
Date: 2006-03-22 14:49

Message:
Logged In: YES 
user_id=2073

hi!

Thanks for your bug report.  Unfortunately, I can't reproduce it here: pinfo simply says "B??dne wyra?enie regularne; Naci?nij dowolny klawisz" and doesn't segfault.

If you're familiar with a debugger, could you check if pinfo_re_comp() in utils.c does indeed return -1 as it should if you enter an invalid regexp?

Thanks,
Bas.

----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=411490&aid=303248&group_id=30592



More information about the Pinfo-devel mailing list