]> granicus.if.org Git - python/commit
closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007)
authorBenjamin Peterson <benjamin@python.org>
Wed, 11 Sep 2019 23:43:22 +0000 (00:43 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 23:43:22 +0000 (00:43 +0100)
commit39de95b746c990e6a2fe9af5fad01747f58b2e5f
treee493945a5beed10740ec8711b7579f3bdc5edf02
parentee536b2020b1f0baad1286dbd4345e13870324af
closes bpo-38124: Fix bounds check in PyState_AddModule. (GH-16007)

The >=, checking whether a module index was in already in the module-by-index list, needed to be strict.

Also, fold nested ifs into one and fix some bad spacing.
Misc/NEWS.d/next/Core and Builtins/2019-09-12-00-14-01.bpo-38124.n6E0H7.rst [new file with mode: 0644]
Python/pystate.c