Files
micropython/py
Jan Sturm a7d3bc2308 py/objdeque: Fix buffer overflow in deque_subscr.
In `deque_subscr()`, if `index_val` equals `self->alloc`, the index
correction `index_val -= self->alloc` does not execute, leading to an
out-of-bounds access in `self->items[index_val]`.

The fix in this commit ensures that the index correction is applied
whenever `index_val >= self->alloc`, preventing access beyond the allocated
buffer size.

Signed-off-by: Jan Sturm <jansturm92@googlemail.com>
2024-11-18 23:27:13 +11:00
..
2024-06-21 16:21:33 +10:00
2024-07-19 10:36:30 +10:00
2024-10-26 01:43:23 +11:00
2023-06-02 21:50:57 +10:00