-
Notifications
You must be signed in to change notification settings - Fork 578
panic: sv_setpvn called with negative strlen #16971
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
Comments
From @dur-randirCreated by @dur-randirWhile fuzzing perl v5.29.9-63-g2496d8f3f7 built with afl and run split(/00|0\G/, "000") to emit 'panic: sv_setpvn called with negative strlen -1' diagnostics. commit 03c83e2 regexec: handle \G ourself, rather than in callers Normally a /g match starts its processing at the previous pos() (or at This is clearly wrong: the callers of regexec() shouldn't need to worry Perl Info
|
From @tonycozOn Sat, 20 Apr 2019 02:22:54 -0700, randir wrote:
I'm not sure if this is a problem in pp_split or regular expression matching. I don't expect the 00 to match after the first match, and I don't expect the 0\G to match at all (pos() isn't modified by split, and is 0 for the second match) Breakpoint 1, Perl_regexec_flags (rx=0x555555d74cd8, Hardware watchpoint 2: -location reginfo->ganch Old value = 0x555555d78a60 "000" The other issue is whether pp_split needs to handle a match that starts before stringarg. Tony |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#134050 (status was 'open')
Searchable as RT134050$
The text was updated successfully, but these errors were encountered: