diff options
author | Björn Gustavsson <[email protected]> | 2015-06-29 13:24:31 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-07-03 14:28:03 +0200 |
commit | dfe1c58c504531361fa3f8ed874238a9ff552640 (patch) | |
tree | 42dc0c14edb059bfb6e331ddf81f6f1f41aa3bae /erts/emulator/utils/beam_strip | |
parent | 26f1810479a837ab338e7a9e3aef027a9e4b098d (diff) | |
download | otp-dfe1c58c504531361fa3f8ed874238a9ff552640.tar.gz otp-dfe1c58c504531361fa3f8ed874238a9ff552640.tar.bz2 otp-dfe1c58c504531361fa3f8ed874238a9ff552640.zip |
beam_makeops: Eliminate crash because of unsafe packing
Consider an hypothetical instruction:
do_something x x c
The loader would crash if we tried to load an instance of the
instruction with the last operand referencing a literal:
{do_something,{x,0},{x,1},{literal,{a,b,c}}}
Teach beam_makeops to turn off packing for such unsafe instructions.
Diffstat (limited to 'erts/emulator/utils/beam_strip')
0 files changed, 0 insertions, 0 deletions