circuitpython/extmod
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
..
crypto-algorithms raspberrypi: implement os.urandom 2021-02-17 17:49:25 -06:00
lwip-include WIP: complete manual inspection of all significant changes 2018-07-23 21:34:25 -04:00
re1.5 extmod/re1.5: Check and report byte overflow errors in _compilecode. 2021-04-06 19:11:40 -05:00
ulab@ef65415b55 ulab: upgrade to 2.6.0 + CP building changes 2021-04-03 12:23:48 -05:00
font_petme128_8x8.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
machine_mem.c run code formatting script 2021-03-15 19:27:36 +05:30
machine_mem.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
machine_pinbase.c Add license to some obvious files. 2020-07-06 19:16:25 +01:00
machine_pinbase.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
machine_pulse.c Add license to some obvious files. 2020-07-06 19:16:25 +01:00
machine_pulse.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
machine_signal.c run code formatting script 2021-03-15 19:27:36 +05:30
machine_signal.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
misc.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
modbtree.c run code formatting script 2021-03-15 19:27:36 +05:30
modframebuf.c run code formatting script 2021-03-15 19:27:36 +05:30
modlwip.c run code formatting script 2021-03-15 19:27:36 +05:30
modonewire.c run code formatting script 2021-03-15 19:27:36 +05:30
modubinascii.c run code formatting script 2021-03-15 19:27:36 +05:30
modubinascii.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
moductypes.c run code formatting script 2021-03-15 19:27:36 +05:30
moduhashlib.c run code formatting script 2021-03-15 19:27:36 +05:30
moduheapq.c run code formatting script 2021-03-15 19:27:36 +05:30
modujson.c run code formatting script 2021-03-15 19:27:36 +05:30
modurandom.c run code formatting script 2021-03-15 19:27:36 +05:30
modure.c [ure] to save space, disable debug dumps by default 2021-03-26 13:24:20 -04:00
moduselect.c run code formatting script 2021-03-15 19:27:36 +05:30
modussl_axtls.c run code formatting script 2021-03-15 19:27:36 +05:30
modussl_mbedtls.c run code formatting script 2021-03-15 19:27:36 +05:30
modutimeq.c run code formatting script 2021-03-15 19:27:36 +05:30
moduzlib.c run code formatting script 2021-03-15 19:27:36 +05:30
modwebrepl.c run code formatting script 2021-03-15 19:27:36 +05:30
modwebsocket.c run code formatting script 2021-03-15 19:27:36 +05:30
modwebsocket.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
uos_dupterm.c Add license to some obvious files. 2020-07-06 19:16:25 +01:00
utime_mphal.c run code formatting script 2021-03-15 19:27:36 +05:30
utime_mphal.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
vfs.c run code formatting script 2021-03-15 19:27:36 +05:30
vfs.h run code formatting script 2021-03-15 19:27:36 +05:30
vfs_fat.c run code formatting script 2021-03-15 19:27:36 +05:30
vfs_fat.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
vfs_fat_diskio.c run code formatting script 2021-03-15 19:27:36 +05:30
vfs_fat_file.c run code formatting script 2021-03-15 19:27:36 +05:30
vfs_posix.c run code formatting script 2021-03-15 19:27:36 +05:30
vfs_posix.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
vfs_posix_file.c run code formatting script 2021-03-15 19:27:36 +05:30
vfs_reader.c run code formatting script 2021-03-15 19:27:36 +05:30
virtpin.c run code formatting script 2021-03-15 19:27:36 +05:30
virtpin.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00