diff options
author | Björn Gustavsson <[email protected]> | 2011-04-27 05:24:38 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2011-05-04 15:20:03 +0200 |
commit | 963843aad736997a66db8f8fdec6b3099373b742 (patch) | |
tree | 7489f4c8510cf80a254b7f8ff67c3233eb08f5d9 /erts/emulator/test/driver_SUITE.erl | |
parent | 73830b087d3a69611c97751156e9f1c61e1ce26a (diff) | |
download | otp-963843aad736997a66db8f8fdec6b3099373b742.tar.gz otp-963843aad736997a66db8f8fdec6b3099373b742.tar.bz2 otp-963843aad736997a66db8f8fdec6b3099373b742.zip |
iolist_size/1: Fix truncation of result
iolist_size/1 would silently return a truncated result for iolists
whose size exceeded the word size. For example:
iolist(lists:duplicate(256, <<0:(1 bsl 24)/unit:8>>)).
would return 0 (instead of 4294967296 or 1 bsl 32).
Rewrite iolist_size/1 to accumulate the size in a bignum if
necessary and result the correct result.
Diffstat (limited to 'erts/emulator/test/driver_SUITE.erl')
0 files changed, 0 insertions, 0 deletions