aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2015-03-12 16:01:33 +0100
committerAnthony Ramine <[email protected]>2015-03-18 12:04:22 +0100
commit6f9c07ae2694a2dc1f721fd10af22b8813d15bc1 (patch)
tree4d1725130a183eb0eee86bbd39955ac39b8124f8 /erts/emulator/beam
parent07abc92d5c763cee81bf69695e35a658ddc961dc (diff)
downloadotp-6f9c07ae2694a2dc1f721fd10af22b8813d15bc1.tar.gz
otp-6f9c07ae2694a2dc1f721fd10af22b8813d15bc1.tar.bz2
otp-6f9c07ae2694a2dc1f721fd10af22b8813d15bc1.zip
Fix a race condition when calling port_info/1
This variable hold the values returned by erlang:port_info/1 and shouldn't be static. Reported-by: Heinz Nikolaus Gies
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r--erts/emulator/beam/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index 012a7d1a4b..a950998c13 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -4484,7 +4484,7 @@ make_port_info_term(Eterm **hpp_start,
int len;
int start;
static Eterm item[] = ERTS_PORT_INFO_1_ITEMS;
- static Eterm value[sizeof(item)/sizeof(item[0])];
+ Eterm value[sizeof(item)/sizeof(item[0])];
start = 0;
len = sizeof(item)/sizeof(item[0]);