Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: c9e5693c3bd5a506e29ece21256a1c07a6668a8e
      
https://github.com/Perl/perl5/commit/c9e5693c3bd5a506e29ece21256a1c07a6668a8e
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M t/re/pat.t

  Log Message:
  -----------
  add tests for #21661


  Commit: 388bf71121e682302397a8b7d9f56fef5ba2559e
      
https://github.com/Perl/perl5/commit/388bf71121e682302397a8b7d9f56fef5ba2559e
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M regcomp.c
    M regcomp_internal.h

  Log Message:
  -----------
  safer cleanup when failing to compile regexps

Prior to this commit when producing a warning the regexp compiler
would check if the warning category was marked as FATAL, and if it was
it would add clean up to the save stack to release buffers used during
compilation and to release the working REGEXP SV.

This causes two type of problems:

- if an error was already queued, Perl_ck_warner() returns even if
  the warning is fatal, this meant that the normal clean up code
  Perl_re_op_compile() would also run, resulting in a double free
  of the buffers.

- without fatal warnings, if a $SIG{__WARN__} handler died, the
  buffers and the working REGEXP SV would leak.

Avoid this by using SAVEDESTRUCTOR_X() to release the memory and
optionally the SV at the end of scope.

Fixes #21661


  Commit: e05687f9599be2a5ba8f9ab06ad078cc8fe33d7e
      
https://github.com/Perl/perl5/commit/e05687f9599be2a5ba8f9ab06ad078cc8fe33d7e
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M regcomp_internal.h

  Log Message:
  -----------
  regcomp_internal.h: simplify vFAIL*() macros

These can be simpler, and since we allow use of __VA_ARGS__
we can consolidate Simple_vFAIL[1-4]() into Simple_vFAILn()


  Commit: eb62f8dc576210ca9a302f9fa6072e444077bd3d
      
https://github.com/Perl/perl5/commit/eb62f8dc576210ca9a302f9fa6072e444077bd3d
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-04 (Sun, 04 Aug 2024)

  Changed paths:
    M regcomp_internal.h

  Log Message:
  -----------
  regcomp_internal.h: removed unused PREPARE_TO_DIE

We are now always prepared for death.


Compare: https://github.com/Perl/perl5/compare/b1632160a5ae...eb62f8dc5762

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

Reply via email to