summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial/powerctrl.rst
diff options
context:
space:
mode:
authorJan Sturm <jansturm92@googlemail.com>2024-10-29 19:26:19 +0100
committerDamien George <damien@micropython.org>2024-11-04 11:21:56 +1100
commit7e1098befe178e4b93657a4d49e6a354037beec4 (patch)
tree41575c9662f3142051a286997eb2ea62b180cf42 /docs/esp8266/tutorial/powerctrl.rst
parent0e490b7c8f32bb72c516985abe67147b9385dc34 (diff)
downloadmicropython-7e1098befe178e4b93657a4d49e6a354037beec4.tar.gz
micropython-7e1098befe178e4b93657a4d49e6a354037beec4.zip
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>
Diffstat (limited to 'docs/esp8266/tutorial/powerctrl.rst')
0 files changed, 0 insertions, 0 deletions