[Perl/perl5] 5f7eb6: pp_pack.c: Avoid ssize_t overflow when calculating...

[email protected] (Paul Evans via perl5-changes) Mon, 11 May 2026 08:50:45 -0700
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/blead/[email protected]>
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 5f7eb6bbbe0510964e3fb1d6bb691e5445913e55
      https://github.com/Perl/perl5/commit/5f7eb6bbbe0510964e3fb1d6bb691e5445913e55
  Author: Paul "LeoNerd" Evans <[email protected]>
  Date:   2026-05-11 (Mon, 11 May 2026)

  Changed paths:
    M pod/perldiag.pod
    M pp_pack.c

  Log Message:
  -----------
  pp_pack.c: Avoid ssize_t overflow when calculating the size of a structure

If the user has requested a size that would overflow a SSize_t, then the
only sensible thing to do is throw an exception, because the structure
this implies couldn't possibly fit into memory anyway.


  Commit: 40754edc72dd3e513d758153c0e2f0215897740e
      https://github.com/Perl/perl5/commit/40754edc72dd3e513d758153c0e2f0215897740e
  Author: Paul "LeoNerd" Evans <[email protected]>
  Date:   2026-05-11 (Mon, 11 May 2026)

  Changed paths:
    M pp_pack.c

  Log Message:
  -----------
  pp_pack.c: Avoid some other potential overflows when calculating sizes


Compare: https://github.com/Perl/perl5/compare/62a147048dc2...40754edc72dd

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