summaryrefslogtreecommitdiff
path: root/py/modarray.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2019-10-08 10:48:25 +0900
committerJeff Epler <jepler@gmail.com>2019-10-08 11:31:06 +0900
commit8fbe19b99335da7c9a17698908f709b02901d8fc (patch)
treed676da577f7320b602d04be62626605714bcb563 /py/modarray.c
parent85f0048d22a31f34d991e56757560f1b39c007b6 (diff)
mp_obj_instance_make_new: avoid undefined behavior
If kw_args is NULL then memcpy() gets a NULL source argument. This is undefined behavior under the C standard, even if 0 bytes are being copied. This problem was found using clang 7's scan-build static analyzer.
Diffstat (limited to 'py/modarray.c')
0 files changed, 0 insertions, 0 deletions