diff options
author | Paulo Henrique Silva <ph.silva@carta.com> | 2020-04-01 15:06:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 15:06:21 (GMT) |
commit | eacc07439591c97f69ab4a3d17391b009cd78ae2 (patch) | |
tree | 927aae704029b9ca14d08c96b2d236bbe8d3de84 /m4/ax_c_float_words_bigendian.m4 | |
parent | 00002e6d8b0ccdb6e0d9e98a9a7f9c9edfdf1311 (diff) | |
download | cpython-eacc07439591c97f69ab4a3d17391b009cd78ae2.zip cpython-eacc07439591c97f69ab4a3d17391b009cd78ae2.tar.gz cpython-eacc07439591c97f69ab4a3d17391b009cd78ae2.tar.bz2 |
bpo-40071: Fix potential crash in _functoolsmodule.c (GH-19273)
Changes on 7dd549eb0893 made _functools compatible with
PEP-489 and we could have multiple modules instances loaded.
But, right now there is no way to make `kwd_mark` global into
a per module instance variable. kwd_mark is used on lru_cache_new
which does not have a reference to a PyModule*, necessary to use
PyModule_GetState.
PEP-573 will solve this problem and will allow us to move the global
state to per-module data and properly clear the state when unloading
a module instance.
This change temporarily disable cleaning of kwd_mark to avoid NULL
pointer dereference if we clear kwd_mark and other module instances
still alive use it.
Diffstat (limited to 'm4/ax_c_float_words_bigendian.m4')
0 files changed, 0 insertions, 0 deletions