David Lechner
6baeded322
py/runtime: Fix crash in star arg unpacking.
...
The reallocation trigger for unpacking star args with unknown length
did not take into account the number of fixed args remaining. So it was
possible that the unpacked iterators could take up exactly the memory
allocated then nothing would be left for fixed args after the star args.
This causes a segfault crash.
This is fixed by taking into account the remaining number of fixed args
in the check to decide whether to realloc yet or not.
Signed-off-by: David Lechner <david@pybricks.com >
2022-08-06 11:32:58 -05:00
..
2020-06-16 23:18:01 +10:00
2019-10-22 19:16:54 +11:00
2020-06-16 22:06:30 +10:00
2020-06-16 22:06:30 +10:00
2016-10-11 12:30:32 +11:00
2016-10-11 12:30:32 +11:00
2020-07-25 00:58:18 +10:00
2016-04-13 15:56:15 +01:00
2021-05-30 10:38:48 +10:00
2020-09-04 00:10:24 +10:00
2019-02-26 23:52:10 +11:00
2019-02-26 23:52:10 +11:00
2020-09-04 00:10:24 +10:00
2020-02-11 11:06:17 +11:00
2017-01-20 13:17:22 +11:00
2020-09-04 00:10:24 +10:00
2018-02-14 16:46:44 +11:00
2018-02-14 16:46:44 +11:00
2017-06-10 20:03:01 +03:00
2017-11-24 15:30:12 +11:00
2016-10-24 13:35:39 +11:00
2018-09-11 15:10:10 +10:00
2016-07-22 12:02:04 +03:00
2016-07-22 12:02:04 +03:00
2019-10-29 22:22:37 +11:00
2016-07-25 14:45:08 +03:00
2019-10-29 22:22:37 +11:00
2014-09-23 14:15:45 +00:00
2017-06-10 20:03:01 +03:00
2014-12-24 20:28:30 +00:00
2015-08-21 12:02:09 +01:00
2019-10-18 15:20:56 +11:00
2020-06-30 23:55:32 +10:00
2014-08-26 09:31:26 +01:00
2014-04-25 21:17:42 +03:00
2022-04-20 15:44:46 +10:00
2017-12-12 23:45:48 +02:00
2020-10-10 00:16:32 +11:00
2018-10-18 12:28:09 +11:00
2015-01-08 17:48:44 +00:00
2017-09-01 00:43:52 +03:00
2019-12-27 12:53:36 +11:00
2014-01-19 18:41:55 +02:00
2014-01-19 18:41:55 +02:00
2014-03-16 15:18:22 +02:00
2017-06-10 20:03:01 +03:00
2018-05-30 11:14:07 +10:00
2014-01-19 18:41:55 +02:00
2014-01-19 18:41:55 +02:00
2014-07-05 06:14:29 +01:00
2014-07-05 06:14:29 +01:00
2020-09-25 12:27:23 +10:00
2015-03-12 22:48:45 +00:00
2018-02-21 23:34:17 +11:00
2018-02-21 22:58:14 +11:00
2018-02-18 21:51:04 -06:00
2014-04-06 21:31:42 +03:00
2014-01-19 18:41:55 +02:00
2021-07-01 13:23:54 +10:00
2021-04-23 22:03:46 +10:00
2015-09-01 10:39:11 +03:00
2014-01-19 18:41:55 +02:00
2014-03-31 18:02:22 +01:00
2014-12-12 17:19:56 +00:00
2014-05-31 16:56:15 +01:00
2017-06-22 14:02:14 +10:00
2017-04-05 10:52:29 +10:00
2014-01-19 18:41:55 +02:00
2014-07-05 06:14:29 +01:00
2015-12-12 13:42:51 +00:00
2018-02-14 16:50:20 +11:00
2018-02-14 16:50:20 +11:00
2015-01-29 14:56:09 +00:00
2022-06-24 23:55:13 +10:00
2015-03-25 23:10:09 +00:00
2014-07-05 06:14:29 +01:00
2016-12-20 16:19:56 +11:00
2014-01-19 18:41:55 +02:00
2018-09-20 15:36:59 +10:00
2014-10-16 00:14:01 +03:00
2019-11-04 15:51:16 +11:00
2018-10-18 12:15:16 +11:00
2015-08-30 11:49:59 +01:00
2015-03-12 22:48:45 +00:00
2016-12-28 12:08:46 +11:00
2018-08-17 15:43:47 +10:00
2017-06-15 13:56:21 +10:00
2017-03-04 00:13:27 +03:00
2015-10-01 22:48:48 +01:00
2015-03-12 22:48:45 +00:00
2018-06-27 16:55:05 +10:00
2018-06-27 16:55:05 +10:00
2020-03-11 14:43:03 +11:00
2018-06-27 16:55:05 +10:00
2018-06-27 16:55:05 +10:00
2017-01-17 16:21:17 +11:00
2018-03-30 14:23:13 +11:00
2014-03-26 19:27:58 +00:00
2018-02-14 16:46:44 +11:00
2019-10-29 22:22:37 +11:00
2014-01-19 18:41:55 +02:00
2015-08-02 20:53:54 +01:00
2016-08-15 10:46:35 +10:00
2014-01-19 18:41:55 +02:00
2014-01-19 18:41:55 +02:00
2017-12-20 16:58:27 +11:00
2020-07-21 01:05:59 +10:00
2021-05-18 10:18:56 +10:00
2019-10-22 19:16:54 +11:00
2019-12-13 15:59:08 +11:00
2020-07-21 01:05:59 +10:00
2015-04-04 22:05:30 +01:00
2022-07-13 16:25:35 +10:00
2017-06-10 20:03:01 +03:00
2017-08-30 21:29:23 +03:00
2021-05-30 13:41:37 +10:00
2017-06-10 20:03:01 +03:00
2016-09-30 14:20:55 +10:00
2015-03-12 22:48:45 +00:00
2020-02-11 11:06:17 +11:00
2020-02-11 11:06:17 +11:00
2017-12-19 13:59:54 +11:00
2014-01-19 18:41:55 +02:00
2017-02-14 22:31:08 +03:00
2014-04-07 05:00:03 +01:00
2014-01-19 18:41:55 +02:00
2017-10-03 18:03:06 +11:00
2014-04-07 05:00:03 +01:00
2019-09-26 15:15:34 +10:00
2021-07-15 00:12:41 +10:00
2020-09-04 00:10:24 +10:00
2015-01-30 00:27:46 +00:00
2014-07-05 06:14:29 +01:00
2018-04-05 16:14:17 +10:00
2017-03-15 17:25:46 +11:00
2014-04-08 11:51:41 -07:00
2014-05-31 07:30:57 +01:00
2014-08-13 13:22:24 +01:00
2017-06-10 20:03:01 +03:00
2019-10-29 22:22:37 +11:00
2014-04-08 11:51:41 -07:00
2017-06-10 20:03:01 +03:00
2014-07-05 06:14:29 +01:00
2014-05-10 19:49:07 +03:00
2020-11-11 22:18:24 +11:00
2017-09-01 11:11:09 +10:00
2019-09-02 13:14:16 +10:00
2017-09-01 10:10:51 +10:00
2017-06-10 20:03:01 +03:00
2014-07-05 06:14:29 +01:00
2014-07-05 06:14:29 +01:00
2019-10-29 22:22:37 +11:00
2017-11-24 14:48:41 +11:00
2022-05-17 09:46:40 +10:00
2020-09-04 00:10:24 +10:00
2014-07-05 06:14:29 +01:00
2016-12-21 15:44:41 +11:00
2014-01-19 18:41:55 +02:00
2014-01-19 18:41:55 +02:00
2016-02-01 16:07:21 +00:00
2019-02-21 16:22:41 +11:00
2019-10-04 23:01:29 +10:00
2017-05-25 20:48:16 +10:00
2014-07-05 06:14:29 +01:00
2017-09-06 00:23:41 +03:00
2014-02-10 07:13:32 +02:00
2014-04-13 17:46:30 +01:00
2014-07-05 06:14:29 +01:00
2014-07-05 06:14:29 +01:00