You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warn instead of DIE when a repetition would exhaust RAM
For discussions on #23561.
perl -e 'use warnings; my $x = ($_) ? "A" x (2**62) : "Z"'
gives this on blead for me:
```
Out of memory!
panic: fold_constants JMPENV_PUSH returned 2 at -e line 1.
```
on the previous commit, it would die:
```
Unrealistically large string repetition value"
```
With this commit, it just warns:
```
Unrealistically large string repetition value at -e line 1.
```
but will blow up if the repetition OP does get executed:
```
Out of memory in perl:util:safesysrealloc
```
0 commit comments