Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 9cc0eeb9c7f8cbe5a7d5c3b092f6ae0da99a150f
      
https://github.com/Perl/perl5/commit/9cc0eeb9c7f8cbe5a7d5c3b092f6ae0da99a150f
  Author: David Mitchell <da...@iabyn.com>
  Date:   2025-05-22 (Thu, 22 May 2025)

  Changed paths:
    M util.c

  Log Message:
  -----------
  MY_CXT: don't SEGV on a 1-byte struct.

The MY_CXT mechanism allows XS code to declare a 'static' struct
which is actually per-interpreter. Behind the scenes, the memory for
this struct is allocated as the PVX buf of an SV. If the size of the
struct is 1 (e.g. '{ char foo }' ) then newSV(size-1) gets called
as newSV(0), which skips allocating a PVX buffer. SEGVs ensue.



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

Reply via email to