From 80ec811a5e87e9f370d7989fe08b5a9af82d429e Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 5 Mar 2025 14:13:42 -0700 Subject: [PATCH] sv_vcatpvfn_flags: Use utf8_to_uv_or_die This is a change in behavior for malformed input. Previously it warned and substituted 0; the warnings remain, but now it croaks. --- sv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sv.c b/sv.c index dc3bbdc3fdf6..b494343af034 100644 --- a/sv.c +++ b/sv.c @@ -13081,8 +13081,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p if (!veclen) goto done_valid_conversion; if (vec_utf8) - uv = utf8n_to_uvchr(vecstr, veclen, &ulen, - UTF8_ALLOW_ANYUV); + uv = utf8_to_uv_or_die(vecstr, vecstr + veclen, &ulen); else { uv = *vecstr; ulen = 1;