mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 11:40:18 +01:00
32-bit platforms only support a slice offset start of 24 bit max due to the limited size of the mp_obj_array_t.free member. Similarly on 64-bit platforms the limit is 56 bits. This commit adds an OverflowError if the user attempts to slice a memoryview beyond this limit. Signed-off-by: Damien George <damien@micropython.org>
2.8 KiB
2.8 KiB