develooper Front page | perl.perl5.changes | Postings from January 2021

[Perl/perl5] bdd419: skip trying to constant fold an incomplete optree

From:
Leon Timmermans via perl5-changes
Date:
January 7, 2021 09:18
Subject:
[Perl/perl5] bdd419: skip trying to constant fold an incomplete optree
Message ID:
Perl/perl5/push/refs/heads/maint-5.32/9aff58-125263@github.com
  Branch: refs/heads/maint-5.32
  Home:   https://github.com/Perl/perl5
  Commit: bdd419192a8b2ab26be9cf5b4b8d7fe6f66b144c
      https://github.com/Perl/perl5/commit/bdd419192a8b2ab26be9cf5b4b8d7fe6f66b144c
  Author: Tony Cook <tony@develop-help.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M op.c
    M t/op/cmpchain.t

  Log Message:
  -----------
  skip trying to constant fold an incomplete op tree

This code would try to constant fold an op tree like

  relop
    +- null
    +- constant

which would underflow the stack, potentially crashing perl.

This is intended as a quick fix rather than as a complete
solution.

Fixes #18380

(cherry picked from commit 08be3ef7f1190d94279ad0b3e13519ac8dc3b0ec)


  Commit: 125263d40da1dedc144a17f6e297b7679086df52
      https://github.com/Perl/perl5/commit/125263d40da1dedc144a17f6e297b7679086df52
  Author: Leon Timmermans <fawaka@gmail.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm

  Log Message:
  -----------
  Make MakeMaker use dlopen to check for library availability on MacOS

(cherry picked from commit 0287c5eaf3a95e7fe34ada76c475514047a1ea05)


Compare: https://github.com/Perl/perl5/compare/9aff587fd201...125263d40da1



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