aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/legacy/erl_timeout.c
diff options
context:
space:
mode:
authorMichael Santos <[email protected]>2011-01-23 18:16:36 -0500
committerBjörn-Egil Dahlberg <[email protected]>2011-02-22 16:37:17 +0100
commiteed4341a21b8e2c8e00d0321bde1213d7a4359df (patch)
tree6c19d9745ff984796f6c62b2d36093016c69417d /lib/erl_interface/src/legacy/erl_timeout.c
parentb0d6abb72cf32df548703b284b737a4a7c0a9d8a (diff)
downloadotp-eed4341a21b8e2c8e00d0321bde1213d7a4359df.tar.gz
otp-eed4341a21b8e2c8e00d0321bde1213d7a4359df.tar.bz2
otp-eed4341a21b8e2c8e00d0321bde1213d7a4359df.zip
erl_interface: fix buffer overflows
Diffstat (limited to 'lib/erl_interface/src/legacy/erl_timeout.c')
-rw-r--r--lib/erl_interface/src/legacy/erl_timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/legacy/erl_timeout.c b/lib/erl_interface/src/legacy/erl_timeout.c
index af1a4a1f3a..6ef5d258ed 100644
--- a/lib/erl_interface/src/legacy/erl_timeout.c
+++ b/lib/erl_interface/src/legacy/erl_timeout.c
@@ -74,7 +74,7 @@ jmp_buf *timeout_setup(int ms)
t.it_value.tv_usec = (ms % 1000) * 1000;
/* get a jump buffer and save it */
- j = malloc(sizeof(*j)); /* FIXME check result */
+ j = erl_malloc(sizeof(*j));
j->siginfo = s;
push(j);