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

  Changed paths:
    M embed.fnc
    M proto.h
    M regcomp_study.c

  Log Message:
  -----------
  fix type of S_unwind_scan_frames

This function is registered with SAVEDESTRUCTOR_X, so its type must be
'void (pTHX_ void *)' exactly. (Also, there is no point in declaring p
pointer-to-const since we cast away 'const' three lines down anyway.)

I don't know if this change has any practical impact, but it shows up in
ASan output:

    scope.c:1543:13: runtime error: call to function S_unwind_scan_frames 
through pointer to incorrect function type 'void (*)(struct interpreter *, void 
*)'


  Commit: 3677d5e89092315cde08056bfdf4e006224ea0aa
      
https://github.com/Perl/perl5/commit/3677d5e89092315cde08056bfdf4e006224ea0aa
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M embed.fnc
    M mg.c
    M mg_vtable.h
    M proto.h
    M regen/mg_vtable.pl

  Log Message:
  -----------
  fix type of Perl_magic_getarylen

This function is used as part of PL_magic_vtables, so its type must be
'int (pTHX_ SV *, MAGIC *)' exactly (no const). With the right type, we
no longer need an ad-hoc cast in mg_vtables.h, which means we no longer
need the 'const' code in regen/mg_vtable.pl, which was a special case
used by this one function only.

Should fix ASan complaints about functions being called with incorrect
types.


  Commit: 27ea2e403373e2007c58002a2c085759020c3715
      
https://github.com/Perl/perl5/commit/27ea2e403373e2007c58002a2c085759020c3715
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M pad.c

  Log Message:
  -----------
  don't use Perl_suspend_compcv as destructor directly

SAVEDESTRUCTOR_X needs a function whose type is 'void (pTHX_ void *)'
exactly, so introduce a little shim.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function Perl_suspend_compcv 
through pointer to incorrect function type 'void (*)(struct interpreter *, void 
*)'


  Commit: 1fd5d96d459becbb9b663ae607eb77c657f9f29e
      
https://github.com/Perl/perl5/commit/1fd5d96d459becbb9b663ae607eb77c657f9f29e
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M dist/threads-shared/lib/threads/shared.pm
    M dist/threads-shared/shared.xs

  Log Message:
  -----------
  threads::shared: fix type of recursive_lock_release

SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function recursive_lock_release 
through pointer to incorrect function type 'void (*)(struct interpreter *, void 
*)'


  Commit: 7d1789653a88d9d0cbfdcb255159dd18b0de71b9
      
https://github.com/Perl/perl5/commit/7d1789653a88d9d0cbfdcb255159dd18b0de71b9
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M mg.c

  Log Message:
  -----------
  fix type of restore_sigmask

SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function restore_sigmask through 
pointer to incorrect function type 'void (*)(struct interpreter *, void *)'


  Commit: 121999c47b1f9b7e922e6ca9ad7cc885d449851a
      
https://github.com/Perl/perl5/commit/121999c47b1f9b7e922e6ca9ad7cc885d449851a
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M ext/POSIX/POSIX.xs
    M ext/POSIX/lib/POSIX.pm

  Log Message:
  -----------
  POSIX: fix type of restore_sigmask

SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function restore_sigmask through 
pointer to incorrect function type 'void (*)(struct interpreter *, void *)'

(Also, change indentation from 5 to 4 spaces.)


  Commit: 5599d912890d457b94109b918121f41e2f8b7a63
      
https://github.com/Perl/perl5/commit/5599d912890d457b94109b918121f41e2f8b7a63
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M regcomp.c

  Log Message:
  -----------
  fix type of S_free_codeblocks

SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function S_free_codeblocks through 
pointer to incorrect function type 'void (*)(struct interpreter *, void *)'


  Commit: 5e6221df8ec41cdc46b9f0318bedfe95409cbd09
      
https://github.com/Perl/perl5/commit/5e6221df8ec41cdc46b9f0318bedfe95409cbd09
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M embed.fnc
    M mg.c
    M proto.h

  Log Message:
  -----------
  fix type of S_restore_magic and S_unwind_handler_stack

SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function S_restore_magic through 
pointer to incorrect function type 'void (*)(struct interpreter *, void *)'
    scope.c:1543:13: runtime error: call to function S_unwind_handler_stack 
through pointer to incorrect function type 'void (*)(struct interpreter *, void 
*)'


  Commit: 65ced8fb6ef423dbafd5252e3f2ffff0f6b2a785
      
https://github.com/Perl/perl5/commit/65ced8fb6ef423dbafd5252e3f2ffff0f6b2a785
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M ext/XS-APItest/APItest.xs

  Log Message:
  -----------
  XS::APItest: fix type of destruct_test

MORTALSVFUNC_X needs a function of type 'void (pTHX_ SV *)' exactly.

Should fix this ASan error:

    scope.c:1979:8: runtime error: call to function destruct_test through 
pointer to incorrect function type 'void (*)(struct interpreter *, struct 
STRUCT_SV *)'


  Commit: ef25527514f583140e33a3486f1ced03471069c1
      
https://github.com/Perl/perl5/commit/ef25527514f583140e33a3486f1ced03471069c1
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M perlio.c

  Log Message:
  -----------
  fix type of S_lockcnt_dec

SAVEDESTRUCTOR_X needs a function of type 'void (pTHX_ void *)' exactly.

Should fix this ASan error:

    scope.c:1543:13: runtime error: call to function S_lockcnt_dec through 
pointer to incorrect function type 'void (*)(struct interpreter *, void *)'


Compare: https://github.com/Perl/perl5/compare/b4ca3130a81b...ef25527514f5

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

Reply via email to