[pcre-dev] [Bug 810] New: Segfault on pcregrep '(.)*' /dev/z…

Page principale
Supprimer ce message
Auteur: Anders Kaseorg
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 810] New: Segfault on pcregrep '(.)*' /dev/zero
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=810
           Summary: Segfault on pcregrep '(.)*' /dev/zero
           Product: PCRE
           Version: 7.8
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: andersk@???
                CC: pcre-dev@???



$ pcregrep --version
pcregrep version 7.8 2008-09-05
$ pcregrep '(.)*' /dev/zero
Segmentation fault (core dumped)

I’ve reproduced this on several machines. This one is running Ubuntu Jaunty
amd64 with pcregrep 7.8-2ubuntu1.

I was bitten by a more complicated case of this problem on real files. The
crash can be avoided by configuring pcre with --disable-stack-for-recursion,
but I am surprised that such an apparently simple test case leads to infinite
recursion.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email