aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/legacy
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-12-06 20:14:31 +0100
committerLukas Larsson <[email protected]>2011-12-08 15:55:02 +0100
commitfb7215a82d5cca222ecf130bddc72f62f835c578 (patch)
tree27fbb48fdb9584dfee8a3e44b186ff8472987033 /lib/erl_interface/src/legacy
parent7e470b53fc70fbaef150453b9214770abb73af47 (diff)
downloadotp-fb7215a82d5cca222ecf130bddc72f62f835c578.tar.gz
otp-fb7215a82d5cca222ecf130bddc72f62f835c578.tar.bz2
otp-fb7215a82d5cca222ecf130bddc72f62f835c578.zip
Only step pointer arity steps
Don't know why the 1 was there, it does however cause the buffer to overflow when decoding the atoms from rex. OTP-9799
Diffstat (limited to 'lib/erl_interface/src/legacy')
-rw-r--r--lib/erl_interface/src/legacy/global_names.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/legacy/global_names.c b/lib/erl_interface/src/legacy/global_names.c
index 7333d94931..db1c3e6296 100644
--- a/lib/erl_interface/src/legacy/global_names.c
+++ b/lib/erl_interface/src/legacy/global_names.c
@@ -94,7 +94,7 @@ char **erl_global_names(int fd, int *count)
if (!(names = malloc((arity * sizeof(char**)) + (size-index)))) return NULL;
/* arity pointers first, followed by s */
- s = (char *)(names+arity+1);
+ s = (char *)(names+arity);
if (count) *count = 0;
for (i=0; i<arity; i++) {