Branch: refs/heads/smoke-me/tonyc/21661-no-warn-ck
  Home:   https://github.com/Perl/perl5
  Commit: 8a9d5369db8e9f9849f3e1d20205e8a630ae106b
      
https://github.com/Perl/perl5/commit/8a9d5369db8e9f9849f3e1d20205e8a630ae106b
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-03 (Sat, 03 Aug 2024)

  Changed paths:
    M t/re/pat.t

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


  Commit: 4455107d0252d863b9b4dc267af94ce412eadf42
      
https://github.com/Perl/perl5/commit/4455107d0252d863b9b4dc267af94ce412eadf42
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-03 (Sat, 03 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: a77c059910062e1fcb84ab33a185e5de09b77b3d
      
https://github.com/Perl/perl5/commit/a77c059910062e1fcb84ab33a185e5de09b77b3d
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-03 (Sat, 03 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: ce34730d09ad8e6e38363d378e576205c5ed7f84
      
https://github.com/Perl/perl5/commit/ce34730d09ad8e6e38363d378e576205c5ed7f84
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-08-03 (Sat, 03 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/2016cd189774...ce34730d09ad

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

Reply via email to