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
Malformed utf8 message; earlier bug fixed, was use heap after free #16020
Comments
From @geeknikTriggered with Perl v5.27.0-97-gd555ed0, compiled with afl-clang-fast on Unescaped left brace in regex is deprecated here (and will be fatal in Perl
|
From @geeknik |
From @tonycozOn Wed, 14 Jun 2017 17:50:42 -0700, brian.carpenter@gmail.com wrote:
Attached is a partial minimization. This patch: Inline Patchdiff --git a/regexec.c b/regexec.c
index 05675ad..29ec5c7 100644
--- a/regexec.c
+++ b/regexec.c
@@ -9524,6 +9524,9 @@ S_reghopmaybe3(U8* s, SSize_t off, const U8* const lim)
}
if (off >= 0)
return NULL;
+ if (s > lim) {
+ Perl_croak_nocontext("Malformed UTF-8 character (fatal)");
+ }
}
else {
while (off++ && s > lim) {
Tony [1] and is a little broken, since s might be beyond the end of the allocated string |
From @tonycoz |
The RT System itself - Status changed from 'new' to 'open' |
On blead, @tonycoz reduction doesn't generate any problem. The original generates Malformed UTF-8 character (unexpected end of string) in substitution (s///) at /var/tmp/test581 line 1, line 5. |
Migrated from rt.perl.org#131577 (status was 'open')
Searchable as RT131577$
The text was updated successfully, but these errors were encountered: