New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regexp engine cannot match >2GB strings #12089
Comments
From @dglMatching unexpectedly fails when the string is longer than I32. The Inline Patchdiff --git a/pp_hot.c b/pp_hot.c
index 89165d9..662b908 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1303,7 +1303,7 @@ PP(pp_match)
rx = PM_GETRE(pm);
}
- if (RX_MINLEN(rx) > (I32)len)
+ if ((STRLEN)RX_MINLEN(rx) > len)
goto failure;
truebase = t = s;
$ perl -Mre=debug -le'$a="x"x 1048576; $b.=$a for 1 .. 2047; $b.="y"; print $ perl -Mre=debugcolor -le'$a="x"x 1048576; $b.=$a for 1 .. 2048; $b.="y"; |
From @cpansproutOn Sun May 06 11:19:53 2012, dgl wrote:
I have gone through the regexp engine and change any uses of I32 that See the commits leading up to merge commit ed56dbc, in particular -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#112790 (status was 'resolved')
Searchable as RT112790$
The text was updated successfully, but these errors were encountered: