Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6a2e93d94928fd304ef9a1821ad2e0eb8adfccb3
      
https://github.com/Perl/perl5/commit/6a2e93d94928fd304ef9a1821ad2e0eb8adfccb3
  Author: Karl Williamson <[email protected]>
  Date:   2021-06-30 (Wed, 30 Jun 2021)

  Changed paths:
    M utf8.c

  Log Message:
  -----------
  utf8_length: Fix undefined C behavior

In C the comparison of two pointers is only legal if both point to
within the same object, or to a virtual element one above the high edge
of the object.

The previous code was doing an addition potentially outside that range,
and so the results would be undefined.


Reply via email to