summaryrefslogtreecommitdiff
path: root/embed.fnc
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2021-04-19 18:49:52 +0200
committerLeon Timmermans <fawaka@gmail.com>2021-05-24 13:56:14 +0200
commite6e9dd290698d47a0db9e1d676d2b82e0bb0a52b (patch)
treee0122058bbf0ffb5df1de8d5af2088d6b98959f6 /embed.fnc
parent18e5156b1786a26cd70a7f8ff84c10956d93faf3 (diff)
downloadperl-e6e9dd290698d47a0db9e1d676d2b82e0bb0a52b.tar.gz
Do not cache utf8 offsets for non-canonical lengths
In particular, if the length is beyond the end, it should not be stored as the end.
Diffstat (limited to 'embed.fnc')
-rw-r--r--embed.fnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 551d468805..648545ac16 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -3095,7 +3095,7 @@ S |int |sv_2iuv_non_preserve |NN SV *const sv
SR |STRLEN |expect_number |NN const char **const pattern
ST |STRLEN |sv_pos_u2b_forwards|NN const U8 *const start \
|NN const U8 *const send|NN STRLEN *const uoffset \
- |NN bool *const at_end
+ |NN bool *const at_end|NN bool *canonical_position
ST |STRLEN |sv_pos_u2b_midway|NN const U8 *const start \
|NN const U8 *send|STRLEN uoffset|const STRLEN uend
S |STRLEN |sv_pos_u2b_cached|NN SV *const sv|NN MAGIC **const mgp \