Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 9fb169d3c6e84cb4fccf49212bb9b2d87f6aef84
      
https://github.com/Perl/perl5/commit/9fb169d3c6e84cb4fccf49212bb9b2d87f6aef84
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M dist/Storable/Storable.xs
    M dist/Storable/lib/Storable.pm

  Log Message:
  -----------
  Storable: don't call functions at wrong type

Avoid casting function pointers. Instead have all generic store_*
helpers take an SV * and cast it to the correct type within the
function. (Because calling a function through a function pointer of the
wrong type has undefined behavior.)

Should fix this ASan error:

    Storable.xs:4126:12: runtime error: call to function store_hash through 
pointer to incorrect function type 'int (*)(struct interpreter *, struct stcxt 
*, struct sv *)'



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

Reply via email to