aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-03-05 11:49:34 +0100
committerJohn Högberg <[email protected]>2018-03-09 08:34:22 +0100
commitca9e3cea6cfdad0d99dcef149cb0ba1d1e1e98f2 (patch)
tree1c5f500335c6c7d69a2cb404736766ce333b1a8c /erts/emulator/beam/io.c
parent3bba476ad0df599050ccfc0826856111f5ff1bde (diff)
downloadotp-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/io.c')
0 files changed, 0 insertions, 0 deletions