]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-127208: Reject null character in _imp.create_dynamic() (GH-127400) (#127418)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Nov 2024 15:45:21 +0000 (16:45 +0100)
committerGitHub <noreply@github.com>
Fri, 29 Nov 2024 15:45:21 +0000 (15:45 +0000)
commitc4a359dc426bcb1a5f16ef25b0e3110bb463bdad
treed0c2f1aad4a09f098836189885f4f3ba43bec39d
parent6a0663404b6c76a6d137776b1912f58ad44e8c86
[3.13] gh-127208: Reject null character in _imp.create_dynamic() (GH-127400) (#127418)

gh-127208: Reject null character in _imp.create_dynamic() (GH-127400)

_imp.create_dynamic() now rejects embedded null characters in the
path and in the module name.
(cherry picked from commit b14fdadc6c620875a20b7ccc3c9b069e85d8557a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_import/__init__.py
Python/import.c