From: Karl Williamson Date: Tue, 19 Mar 2019 16:25:06 +0000 (-0600) Subject: Merge branch 'safer' into blead X-Git-Tag: v5.29.9~13 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/bc508755449a899a1f962877248064475fb91770 Merge branch 'safer' into blead I undertook an audit to see where there might be places where malformed UTF-8 input could cause us to exceed the boundaries of buffers. I looked for where hopping to other characters in the string and skipping to the next character based on the current start byte. This branch is the result of that. Wherever I didn't see how exceeding the bounds wasn't a problem, I changed to use the safer versions of the hop and skip operations that we already have. As an example of where it isn't a problem is when doing the operation is at the end of a loop iteration, and the loop tests if we've exceeded it, with the result that the loop just stops executing. I may have missed things, and may have changed to unnecessarily use the safer operations in places --- bc508755449a899a1f962877248064475fb91770