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

  Changed paths:
    M ext/XS-APItest/APItest.xs
    M pp_pack.c
    M t/op/pack.t

  Log Message:
  -----------
  pp_pack: SvPV_force() pack(p/P, ...) arguments when writable

pack("p"/"P") is generally pretty awful, but we document that you
can pack("P") and then write to the pointer supplied, so make that
safer by ensuring the PV isn't shared with other SVs.

Since _force() throws on a READONLY SV, and you shouldn't be writing
to one, only _force() for a writable SV.

This is still broken when magic is involved, but we did document it
as usable.

Fixes the UUID::FFI part of #22380

Some other modules (and UUID::FFI itself, really) will need XS
fixes.



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

Reply via email to