diff options
author | John Högberg <[email protected]> | 2019-08-09 12:59:48 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-08-09 13:10:33 +0200 |
commit | 16d23f7ea9517b8743d754a2f2d4758abf42d60d (patch) | |
tree | 35c2882cc518e44a98c7da19ff2310a4f1d04dc5 /erts/emulator/beam/erl_gc.h | |
parent | 4b6166445235b0b062541ebd00c809c8baa837d0 (diff) | |
download | otp-16d23f7ea9517b8743d754a2f2d4758abf42d60d.tar.gz otp-16d23f7ea9517b8743d754a2f2d4758abf42d60d.tar.bz2 otp-16d23f7ea9517b8743d754a2f2d4758abf42d60d.zip |
erts: Disallow binaries whose size in bits exceeds UWORD_MAX
These have never worked in binary matching (including sub-binaries
extracted from them) so it's hard to justify their existence. They
also make a future migration of binary sizes from bytes to bits
problematic, so we may as well change it ahead of time.
This is potentially incompatible on 32-bit platforms where a NIF
or driver could allocate 512MB+ binaries, but allocations that
large should be expected to fail anyway.
Diffstat (limited to 'erts/emulator/beam/erl_gc.h')
0 files changed, 0 insertions, 0 deletions