diff options
author | Karl Williamson <khw@cpan.org> | 2019-11-04 13:12:21 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-11-06 21:22:24 -0700 |
commit | 472799915f21962871c7c62bd6b48f9e6775e0b7 (patch) | |
tree | 2de6759aa0c2b39c5f289ea5fba966f1cafccd4a /doop.c | |
parent | b8e8e0fc7ce2b44e6b1ba9f6ea70ac62f044c284 (diff) | |
download | perl-472799915f21962871c7c62bd6b48f9e6775e0b7.tar.gz |
doop.c: Change out-of-bounds value
This currently uses 0xfeedface as a marker for something that isn't a
legal value. But that could in fact become legal at same point. This
defines a value TR_OOB that can be guaranteed not to become legal.
Diffstat (limited to 'doop.c')
-rw-r--r-- | doop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -216,7 +216,7 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl) /* What the mapping of the previous character was to. If the new * character has the same mapping, it is squashed from the output (but * still is included in the count) */ - UV pch = 0xfeedface; + UV pch = TR_OOB; if (grows) /* Allow for worst-case expansion: Each input byte can become 2. @@ -261,7 +261,7 @@ S_do_trans_complex(pTHX_ SV * const sv, const OPtrans_map * const tbl) } s += len; - pch = 0xfeedface; + pch = TR_OOB; } if (grows) { |