diff options
author | John Högberg <[email protected]> | 2018-03-05 11:49:34 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-03-09 08:34:22 +0100 |
commit | ca9e3cea6cfdad0d99dcef149cb0ba1d1e1e98f2 (patch) | |
tree | 1c5f500335c6c7d69a2cb404736766ce333b1a8c /erts/emulator/beam/dist.h | |
parent | 3bba476ad0df599050ccfc0826856111f5ff1bde (diff) | |
download | otp-ca9e3cea6cfdad0d99dcef149cb0ba1d1e1e98f2.tar.gz otp-ca9e3cea6cfdad0d99dcef149cb0ba1d1e1e98f2.tar.bz2 otp-ca9e3cea6cfdad0d99dcef149cb0ba1d1e1e98f2.zip |
Check the arguments to sys_memcpy and friends
Passing NULL is undefined behavior and unconditionally executing these
may result in the compiler optimizing away a later NULL check. It can
often work since the pointer isn't touched when the length is 0, but
it's a major footgun. See ERL-573.
Diffstat (limited to 'erts/emulator/beam/dist.h')
0 files changed, 0 insertions, 0 deletions