Skip to content

Commit d2f1327

Browse files
committed
Use EPTR to assert pointer is after string beginning
1 parent 653d617 commit d2f1327

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

embed.fnc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@
185185
: final byte that EPTR points to. There are functions that do that, and they
186186
: use EPTRQ to declare that the final byte is fair game.
187187
:
188+
: Finally, this same ability can be used to verify that a pointer to the
189+
: middle of the string is beyond the string beginning.
190+
:
188191
: For a numeric argument, you may specify that it can't be 0 by using 'NZ'
189192
:
190193
: regen/embed.pl may automatically add further checking for any argument as
@@ -5748,19 +5751,19 @@ ERS |WB_enum|advance_one_WB_|NN U8 **curpos \
57485751
|const bool utf8_target \
57495752
|const bool skip_Extend_Format
57505753
ERS |GCB_enum|backup_one_GCB|NN const U8 * const strbeg \
5751-
|NN U8 **curpos \
5754+
|EPTRQ U8 **curpos \
57525755
|const bool utf8_target
57535756
ERS |LB_enum|backup_one_LB_ |NN const U8 * const strbeg \
5754-
|NN U8 **curpos \
5757+
|EPTRQ U8 **curpos \
57555758
|const bool utf8_target \
57565759
|bool skip_CM_ZWJ
57575760
ERS |SB_enum|backup_one_SB |NN const U8 * const strbeg \
5758-
|NN U8 **curpos \
5761+
|EPTRQ U8 **curpos \
57595762
|const bool utf8_target
57605763
ERS |WB_enum|backup_one_WB_but_over_Extend_FO \
57615764
|NN WB_enum *previous \
57625765
|NN const U8 * const strbeg \
5763-
|NN U8 **curpos \
5766+
|EPTRQ U8 **curpos \
57645767
|const bool utf8_target
57655768
EWi |void |capture_clear |NN regexp *rex \
57665769
|U16 from_ix \

proto.h

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)