]> granicus.if.org Git - python/commit
bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not be null...
authorBenjamin Peterson <benjamin@python.org>
Tue, 5 Sep 2017 05:23:42 +0000 (22:23 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2017 05:23:42 +0000 (22:23 -0700)
commita3070d530c70477273cacbc61660b318582fff44
tree632003f1a59f22cc2c580401873d1d230b08d92f
parentdb564238db440d4a2d8eb9d60ffb94ef291f6d30
bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not be null (#3329)

Passing NULL as the second argument to to memcpy is undefined behavior even if the size is 0.
Misc/NEWS.d/next/Core and Builtins/2017-09-04-16-35-06.bpo-31347.KDuf2w.rst [new file with mode: 0644]
Objects/call.c