This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
re_intuit_start(): MBOL use char for float max
authorDavid Mitchell <davem@iabyn.com>
Fri, 7 Feb 2014 22:25:40 +0000 (22:25 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 8 Feb 2014 14:04:55 +0000 (14:04 +0000)
commitf4f115deb65686550534968f3c480815511ad36c
tree901c32ac8e940ec0e1f98611306252338bc688ac
parentceedd9f2b24b1840bef2fc2da7a50798b8e470a1
re_intuit_start(): MBOL use char for float max

Do the "maximum place \n can appear within the float range" calculation
in chars rather than bytes. Doing it in bytes is logically incorrect,
although I think the worst outcome is that a string is falsely accepted
by intuit then has to be failed by a full run of the regex engine.
But I couldn't think of a test that would show a significant performance
difference.
regexec.c