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
..
2021-03-15 19:27:36 +05:30
2016-10-05 00:17:22 +11:00
2021-03-15 19:27:36 +05:30
2017-04-04 17:38:33 +10:00
2021-03-15 19:27:36 +05:30
2017-12-14 17:13:02 +11:00
2021-03-15 19:27:36 +05:30
2017-01-25 23:20:19 +11:00
2021-03-15 19:27:36 +05:30
2017-12-14 17:36:13 +11:00
2021-03-15 19:27:36 +05:30
2016-12-01 16:43:25 +11:00
2021-03-15 19:27:36 +05:30
2017-12-12 16:48:09 +11:00
2017-06-10 20:34:38 +03:00
2015-07-08 11:37:23 +03:00
2021-03-15 19:27:36 +05:30
2016-06-19 19:45:29 +03:00
2021-03-15 19:27:36 +05:30
2017-02-05 14:20:17 +03:00
2021-03-15 19:27:36 +05:30
2017-03-02 16:09:16 +11:00
2016-10-30 21:33:12 +03:00
2016-10-30 21:33:12 +03:00
2021-03-15 19:27:36 +05:30
2018-03-04 00:17:33 +11:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2017-07-03 14:52:00 +10:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2017-04-21 16:43:21 +03:00
2021-03-15 19:27:36 +05:30
2016-01-03 20:32:51 +02:00
2021-03-15 19:27:36 +05:30
2017-03-07 08:40:03 +01:00
2021-03-15 19:27:36 +05:30
2017-03-07 08:40:03 +01:00
2017-12-19 16:48:41 +11:00
2017-12-19 16:48:41 +11:00
2021-03-15 19:27:36 +05:30
2017-12-19 16:48:41 +11:00
2021-03-15 19:27:36 +05:30
2017-12-19 16:48:41 +11:00
2021-03-15 19:27:36 +05:30
2016-03-19 21:59:42 +00:00
2021-03-15 19:27:36 +05:30
2016-12-12 17:09:14 +11:00
2021-03-15 19:27:36 +05:30
2016-03-19 21:59:42 +00:00
2021-03-15 19:27:36 +05:30
2016-12-12 17:09:14 +11:00
2021-03-15 19:27:36 +05:30
2016-12-12 17:09:14 +11:00
2021-03-15 19:27:36 +05:30
2014-07-09 19:28:24 +03:00
2021-03-15 19:27:36 +05:30
2014-07-09 19:28:24 +03:00
2021-03-15 19:27:36 +05:30
2017-12-19 16:48:41 +11:00
2021-03-15 19:27:36 +05:30
2014-07-09 19:28:24 +03:00
2021-03-15 19:27:36 +05:30
2017-12-19 16:48:41 +11:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2015-09-03 23:06:18 +01:00
2017-06-10 20:34:38 +03:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2020-07-10 17:33:17 -07:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2020-12-07 15:40:02 -08:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2017-01-26 23:45:51 +11:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2021-04-06 19:11:40 -05:00
2021-04-06 19:11:40 -05:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2017-06-10 20:34:38 +03:00
2016-04-26 10:19:04 +01:00
2021-03-15 19:27:36 +05:30
2017-01-17 17:42:37 +11:00
2017-07-01 01:25:45 +03:00
2017-10-03 00:24:32 +03:00
2017-10-03 00:24:32 +03:00
2021-03-15 19:27:36 +05:30
2019-02-14 15:42:22 +01:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2017-07-20 00:20:53 +03:00
2021-03-15 19:27:36 +05:30
2016-12-22 00:31:38 +03:00
2017-06-10 20:34:38 +03:00
2016-12-24 00:25:15 +03:00
2021-03-15 19:27:36 +05:30
2017-03-14 22:13:36 +11:00
2021-03-15 19:27:36 +05:30
2016-09-04 14:45:27 +03:00
2021-03-15 19:27:36 +05:30
2021-03-15 19:27:36 +05:30
2017-06-11 22:56:27 +10:00
2021-03-15 19:27:36 +05:30
2018-03-23 09:19:56 -05:00
2021-03-15 19:27:36 +05:30
2018-03-12 12:26:36 +11:00
2021-03-15 19:27:36 +05:30
2018-06-06 14:28:23 +10:00
2021-03-15 19:27:36 +05:30
2018-03-12 12:26:36 +11:00
2021-03-15 19:27:36 +05:30
2018-08-25 20:43:02 +02:00
2021-03-15 19:27:36 +05:30
2018-06-12 12:29:26 +10:00
2021-03-15 19:27:36 +05:30
2017-03-10 15:05:08 +11:00