develooper Front page | perl.perl5.changes | Postings from November 2022

[Perl/perl5] 050784: relax the assertion in SSPTR() and SSPTRt()

From:
Tony Cook via perl5-changes
Date:
November 18, 2022 22:52
Subject:
[Perl/perl5] 050784: relax the assertion in SSPTR() and SSPTRt()
Message ID:
Perl/perl5/push/refs/heads/blead/decc3c-050784@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 0507844a31371da4dbf9136341e30487e5a9b5a8
      https://github.com/Perl/perl5/commit/0507844a31371da4dbf9136341e30487e5a9b5a8
  Author: Tony Cook <tony@develop-help.com>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M scope.h

  Log Message:
  -----------
  relax the assertion in SSPTR() and SSPTRt()

I added assertions in SSPTR() and SSPTRt() to try to ensure the new
SSize_t result from SSNEW*() wouldn't be truncated, but this
was too strict, requiring that the size matched exactly.

Relax this to allow the input offset to be the same or larger than
SSize_t.

Fixes #20504.





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About