diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-10-08 10:48:25 +0900 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-10-08 11:31:06 +0900 |
| commit | 8fbe19b99335da7c9a17698908f709b02901d8fc (patch) | |
| tree | d676da577f7320b602d04be62626605714bcb563 /shared-module/socket | |
| parent | 85f0048d22a31f34d991e56757560f1b39c007b6 (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 'shared-module/socket')
0 files changed, 0 insertions, 0 deletions
