circuitpython/extmod/re1.5
Jeff Epler 2fb5eb3b11 extmod/re1.5: Check and report byte overflow errors in _compilecode.
The generated regex code is limited in the range of jumps and counts, and
this commit checks all cases which can overflow given the right kind of
input regex, and returns an error in such a case.

This change assumes that the results that overflow an int8_t do not
overflow a platform int.

Closes: #7078

Signed-off-by: Jeff Epler <jepler@gmail.com>

# Conflicts:
#	extmod/re1.5/compilecode.c
2021-04-06 19:11:40 -05:00
..
charclass.c extmod: Pull in upstream changes to re1.5; fixes bug, adds named class. 2015-02-21 10:33:20 +00:00
compilecode.c extmod/re1.5: Check and report byte overflow errors in _compilecode. 2021-04-06 19:11:40 -05:00
dumpcode.c extmod/re1.5: Update to 0.8. 2015-11-01 00:38:00 +03:00
re1.5.h extmod/re1.5: Upgrade to v0.8.2, adds hook for stack overflow checking. 2017-10-02 21:20:47 +03:00
recursiveloop.c Add FALLTHROUGH comments as needed 2020-09-12 15:11:29 -05:00