Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 3a16cb5fb8114b7773a9c488c78684bffd787b62
      
https://github.com/Perl/perl5/commit/3a16cb5fb8114b7773a9c488c78684bffd787b62
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    M doio.c
    M pod/perldelta.pod
    M t/io/shm.t

  Log Message:
  -----------
  doio: fix shmread() on non-string buffers

- If the buffer is a reference, don't leak memory (or abort, on
  debugging perls). The problem is that SvPOK_only() blindly turns off
  some SV flags, but does not decrement any refcounts if ROK was on.
- If the buffer is tied, don't call FETCH. Conceptually, shmread() is a
  bytestring assignment (from a shared memory segment to a scalar
  variable), so it should only STORE. (This is also why most of the code
  can be replaced by sv_setpvn().)

Fixes #22898.



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

Reply via email to