Commit b7b77ff
committed
CLEAR_ERRSV: create a new SV if the existing one isGV_with_GP
GH Perl#16885 is a fuzzer-identified assert in Perl_sv_grow. Besides the
question of how the program should behave, the actual assertion comes
via the `SvPVCLEAR()` statement in `CLEAR_ERRSV`, where `svp` is
unexpectedly a PVGV with GV. This commit treats this the same as if
`svp` was READONLY - the refcount is decremented and `svp` assigned
a brand new SVt_PV.1 parent e9d9a70 commit b7b77ff
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1947 | 1947 | | |
1948 | 1948 | | |
1949 | 1949 | | |
1950 | | - | |
| 1950 | + | |
1951 | 1951 | | |
1952 | 1952 | | |
1953 | 1953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
837 | 837 | | |
838 | 838 | | |
839 | 839 | | |
| 840 | + | |
| 841 | + | |
0 commit comments