]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38730: Replace strncpy in import.c with memcpy. (GH-17633)
authorBenjamin Peterson <benjamin@python.org>
Tue, 17 Dec 2019 00:39:57 +0000 (16:39 -0800)
committerGitHub <noreply@github.com>
Tue, 17 Dec 2019 00:39:57 +0000 (16:39 -0800)
commit052f47ef5cc363e842e0e839980cfa55ada123b5
treebf14554edc2ea804899b55d079a40099312a0e03
parentde4481339dec395d70e350aa2e22d7990d2b3635
bpo-38730: Replace strncpy in import.c with memcpy. (GH-17633)

In all these cases, we know the exact length we want copied, so memcpy is the right function to use.
Python/import.c