Commit b20c83a
committed
Perl_op_convert_list - only short circuit CONST OPs with an IsCOW SV
Currently, a CONST OP's SV will not have the `IsCOW` flag set if
the PV buffer was truncated such that it is too small to be COWed.
In which case, not short circuting `Perl_op_convert_list` causes
the OP to undergo constant folding, resulting in a CONST OP with
an SV that can participate in COW.
This means that the commit which introduced the short-circuit for
CONST OPs accidentally introduced a regression:
a902d92
This commit adds an additional check to ensure that short circuiting
does not happen when the CONST OP SV cannot be COWed. This is a
short term workaround given the proximity to the next stable release.
#23290 seems like the more
appropriate fix, but is a bigger change, so will be held until the
next development cycle.1 parent 11de3f7 commit b20c83a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5571 | 5571 | | |
5572 | 5572 | | |
5573 | 5573 | | |
5574 | | - | |
| 5574 | + | |
5575 | 5575 | | |
5576 | 5576 | | |
5577 | 5577 | | |
| |||
0 commit comments