Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4539fb8c81b73cb8057859ccab110502c1db28b3
      
https://github.com/Perl/perl5/commit/4539fb8c81b73cb8057859ccab110502c1db28b3
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-12-02 (Mon, 02 Dec 2024)

  Changed paths:
    M builtin.c
    M lib/builtin.pm
    M lib/builtin.t

  Log Message:
  -----------
  builtin::trim: ensure TARG is properly reset

refactor a lot of custom "set SV to a string code" away to
sv_setpvn(), this:

 - fixed the original problem reported for #22784, where TARG wasn't
   being reset properly and contained a cached numeric version of the
   result from the previous call.

 - removed some never executed code, since builtin::trim is only XS
   and is not an OP with the TARGLEX optimization

 - fixes a possible problem if the result of the first call to trim()
   is COWed.

This does slightly change the taint behaviour, rather than making TARG
tainted iff source is tainted, it changes to the behaviour of the rest
of perl, making TARG tainted if any tainted input is seen in the
current expression.

See thr PR #22788 for some discussion on how we got here.

Fixes #22784



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to