diff options
author | Björn Gustavsson <[email protected]> | 2017-11-24 12:50:25 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-11-24 15:47:32 +0100 |
commit | 3105c314beff5c9b226d8e863d32c4329706353c (patch) | |
tree | 9890c65469b078a47b7cd8a415badc93494fd89c /erts/emulator/beam/erl_bif_re.c | |
parent | c17978f689ca8f9dd36f76fa8fcf448664921301 (diff) | |
download | otp-3105c314beff5c9b226d8e863d32c4329706353c.tar.gz otp-3105c314beff5c9b226d8e863d32c4329706353c.tar.bz2 otp-3105c314beff5c9b226d8e863d32c4329706353c.zip |
Fix purging of modules with "fake literals"
When compiling Erlang source code, the literal area for the
module can only contain data types that have a literal
syntax.
However, it is possible to sneak in other data types
(such as references) in the literal pool by compiling from
abstract or assembly code. Those "fake literals" would work
fine, but would crash the runtime system when the module containing
the literals was purged.
Although fake literals are not officially supported, the
runtime should not crash when attempting to use them.
Therefore, fix the garbage collection of literals and releasing
of literal areas.
https://bugs.erlang.org/browse/ERL-508
Diffstat (limited to 'erts/emulator/beam/erl_bif_re.c')
0 files changed, 0 insertions, 0 deletions