]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106168: Check allocated instead of size index bounds in PyList_SET_ITEM() (#111480)
authorscoder <stefan_ml@behnel.de>
Mon, 30 Oct 2023 11:24:21 +0000 (12:24 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 11:24:21 +0000 (12:24 +0100)
commit940ee962a8a1e87543fd36338228e526e7f35067
tree668ee5f5f4daf1b07b2990b2c07d597a6960ff67
parent4a929d432b48775096d40f5c72bcd9be052b0a2d
gh-106168: Check allocated instead of size index bounds in PyList_SET_ITEM() (#111480)

Check the index bound assertions in PyList_SET_ITEM() against [0:allocated] instead of [0:size] to re-allow valid use cases that assign within the allocated area.
Include/cpython/listobject.h