develooper Front page | perl.perl5.porters | Postings from November 2010

[perl #37836] Simple Regex causes SEGV when run on specific data

From:
Karl Williamson via RT
Date:
November 5, 2010 21:51
Subject:
[perl #37836] Simple Regex causes SEGV when run on specific data
Message ID:
rt-3.6.HEAD-4263-1288911879-1992.37836-14-0@perl.org
This bug may be fixed, but the test for it in t/re/pat_rt_report.t is
wrong, and works only because the single character ANYOF node is being
optimized into an EXACT node.  If you add any other character to the
class, the optimization goes away and the test fails.  It does not cause
a segmentation fault, but you do get the correct error message that this
is malformed utf8.

I'm not sure how to fix this without further research.

--Karl Williamson



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About