[pcre-dev] [Bug 1860] New: Segfault in pcre2_match.c:match

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 1860] New: Segfault in pcre2_match.c:match
https://bugs.exim.org/show_bug.cgi?id=1860

            Bug ID: 1860
           Summary: Segfault in pcre2_match.c:match
           Product: PCRE
           Version: N/A
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: m8r-as0mdp@???
                CC: pcre-dev@???


$ ./pcre2test
PCRE2 version 10.22-RC1 2016-06-29
re> /(0)+/
data> \[0]{80000}

Segmentation fault
$

backtrace is:
#0  0x000000000041d317 in match (eptr=eptr@entry=0x7ffff7fe3c1a '0' <repeats
200 times>..., ecode=ecode@entry=0x6770d3 "\206",
    mstart=mstart@entry=0x7ffff7fe1790 '0' <repeats 200 times>...,
offset_top=offset_top@entry=0x4, mb=mb@entry=0x7fffffffd4a0,
eptrb=eptrb@entry=0x0, rdepth=0x4914)
    at src/pcre2_match.c:581


followed by several thousand pairs of this:
#1  0x000000000042bd07 in match (eptr=<optimized out>,
eptr@entry=0x7ffff7fe3c19 '0' <repeats 200 times>..., ecode=0x6770da "z",
    mstart=mstart@entry=0x7ffff7fe1790 '0' <repeats 200 times>...,
offset_top=offset_top@entry=0x4, mb=mb@entry=0x7fffffffd4a0,
eptrb=eptrb@entry=0x0, rdepth=0x4913)
    at src/pcre2_match.c:2131
#2  0x000000000041ea0b in match (eptr=<optimized out>,
eptr@entry=0x7ffff7fe3c19 '0' <repeats 200 times>...,
ecode=ecode@entry=0x6770d3 "\206",
    mstart=mstart@entry=0x7ffff7fe1790 '0' <repeats 200 times>...,
offset_top=offset_top@entry=0x4, mb=mb@entry=0x7fffffffd4a0,
eptrb=eptrb@entry=0x0, rdepth=0x4912)
    at src/pcre2_match.c:1020


and finally this:
#18709 0x000000000042f681 in pcre2_match_8 (code=0x677050,
subject=subject@entry=0x7ffff7fe1790 '0' <repeats 200 times>...,
length=length@entry=0x13880,
    start_offset=0x0, options=<optimized out>, match_data=0x675830,
mcontext=<optimized out>) at src/pcre2_match.c:6997
#18710 0x000000000040625c in process_data () at src/pcre2test.c:6390
#18711 0x0000000000407862 in main (argc=<optimized out>, argc@entry=0x2,
argv=argv@entry=0x7fffffffe038) at src/pcre2test.c:7591
#18712 0x00007ffff7a2e830 in __libc_start_main (main=0x406c50 <main>, argc=0x2,
argv=0x7fffffffe038, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe028) at
../csu/libc-start.c:291
#18713 0x0000000000409429 in _start ()


--
You are receiving this mail because:
You are on the CC list for the bug.