aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/application_SUITE.erl
diff options
context:
space:
mode:
authorJesper Louis Andersen <[email protected]>2015-05-12 12:44:14 +0200
committerJesper Louis Andersen <[email protected]>2015-05-12 23:28:07 +0200
commitcce681109c05ffa8cb88e83eb70ccf73c13d0c75 (patch)
tree77ed0ce40d43b9498b2038bbabec7ec4a4cb5339 /lib/kernel/test/application_SUITE.erl
parentce96ab6d64768cd6536011ccdecc08191c238220 (diff)
downloadotp-cce681109c05ffa8cb88e83eb70ccf73c13d0c75.tar.gz
otp-cce681109c05ffa8cb88e83eb70ccf73c13d0c75.tar.bz2
otp-cce681109c05ffa8cb88e83eb70ccf73c13d0c75.zip
Correct usage of sizeof() for pointer types
Given some pointer *x, calling sizeof(x) will give us the size of the pointer (4/8 bytes) not the size fo the underlying dereferenced structure. Use coccinelle to search for these occurrences in the source code, and correct them one by one. In the case of erl_node_tables.c, the erts_snprintf() calls used a much too small buffer. - run_erl.c: Use the size of the signal type, not its pointer. - erl_node_tables.c: Use the size of the _BUFFER in erts_snprintf() to make sure we can use the full space.
Diffstat (limited to 'lib/kernel/test/application_SUITE.erl')
0 files changed, 0 insertions, 0 deletions