diff options
author | Maxim Fedorov <[email protected]> | 2017-12-13 12:22:59 -0800 |
---|---|---|
committer | Maxim Fedorov <[email protected]> | 2018-05-15 09:18:30 -0700 |
commit | d23487f5daa4e898767b8171732c0fe0516bc1d0 (patch) | |
tree | 71f311edd44cc68ece707253d4b2a0435f04f4c0 /make/otp_subdir.mk | |
parent | 3b3e2f46841e3e86c991be92d62cbb0360ca80e3 (diff) | |
download | otp-d23487f5daa4e898767b8171732c0fe0516bc1d0.tar.gz otp-d23487f5daa4e898767b8171732c0fe0516bc1d0.tar.bz2 otp-d23487f5daa4e898767b8171732c0fe0516bc1d0.zip |
Throw 'system_limit' when distribution message size exceed INT_MAX instead of crashing emulator with 'Absurdly large distribution data buffer'
Exception must be thrown when buffer has been created and it's size is known. The actual buffer size is not known until the message has been encoded in ERTS_DSIG_SEND_PHASE_FIN. It would have been nice to abort before allocating and encoding, but in order to do that in a safe way the size calculation would need improvements. It is good enough to abort in the ERTS_DSIG_SEND_PHASE_FIN while we wait for the "fragmented distribution message" feature.
Diffstat (limited to 'make/otp_subdir.mk')
0 files changed, 0 insertions, 0 deletions