diff options
author | John Högberg <[email protected]> | 2018-02-19 18:04:01 +0100 |
---|---|---|
committer | John Högberg <[email protected]> | 2018-02-26 08:29:38 +0100 |
commit | 89de89e4c962aac2ff0c55f420ef6d510533f02a (patch) | |
tree | 1bfa9c75a66b87a35b471fbf6ab0c47c37cc0e50 /erts/prebuild.skip | |
parent | 97ac7f37c93b36617fe09b81f64a967b0d341673 (diff) | |
download | otp-89de89e4c962aac2ff0c55f420ef6d510533f02a.tar.gz otp-89de89e4c962aac2ff0c55f420ef6d510533f02a.tar.bz2 otp-89de89e4c962aac2ff0c55f420ef6d510533f02a.zip |
Unconditionally transfer ownership to the created term
This fixes two corner-cases:
1) We will no longer return an invalid term when a binary inspected
on environment A is used in enif_make_binary on environment B
2) A double-free in this sequence of events:
* enif_alloc_binary(size, &bin);
* enif_ioq_enq_binary(ioq, &bin, skip);
* enif_make_binary(env, &bin);
* enif_make_binary(env, &bin);
OTP-14931
OTP-14932
Diffstat (limited to 'erts/prebuild.skip')
0 files changed, 0 insertions, 0 deletions