bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args mig… · pythoncapi/cpython@a3070d5 · GitHub
Skip to content

Commit a3070d5

Browse files
authored
bpo-31347: _PyObject_FastCall_Prepend: do not call memcpy if args might not be null (python#3329)
Passing NULL as the second argument to to memcpy is undefined behavior even if the size is 0.
1 parent db56423 commit a3070d5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions

Objects/call.c

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)