Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: ab428ebf6228ca033a5869addee8300ac92356b0
      
https://github.com/Perl/perl5/commit/ab428ebf6228ca033a5869addee8300ac92356b0
  Author: Paul "LeoNerd" Evans <[email protected]>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M class.c

  Log Message:
  -----------
  Use a temporary variable to build fieldinfo into

Rather than each write dereferencing the `PadnameFIELDINFO()` macro,
it's nicer to build up the fieldinfo struct into a temporary variable,
and then assign it into the PADNAME once at the end.


  Commit: 31d80bb9b49240f1610516adbbbd28666bde0609
      
https://github.com/Perl/perl5/commit/31d80bb9b49240f1610516adbbbd28666bde0609
  Author: Paul "LeoNerd" Evans <[email protected]>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M pad.c
    M t/class/threads.t

  Log Message:
  -----------
  Bugfix for PadnameFIELDINFO on thread cloning (GH#24150)

Fixes #24150

We were fetching the wrong pointer during thread cloning, leading to
weird subtle bugs in the cloned thread. As the field info structure is
mostly only used during compile-time, it wasn't obvious from the
existing tests that it was wrong. The newly-added test uses the same
field multiple times across methods, so results in the cloned copy in
the thread having to bump the reference count. Without this bugfix it
resulted in a structure being accessed via the wrong pointer type and
caused memory corruption of the incorrectly accessed structure.


Compare: https://github.com/Perl/perl5/compare/442169db4a6f...31d80bb9b492

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

Reply via email to