aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-11-18 16:56:40 +0100
committerSverker Eriksson <[email protected]>2013-11-18 17:03:55 +0100
commitee0ca14382e76d97285e64b3396fbb87f33e23da (patch)
treee1c8ce7912b0808d5669f69cdb031111e439f14f /erts/doc
parent20641fe0f2ea745873fc7557448d3a7deb1bd639 (diff)
downloadotp-ee0ca14382e76d97285e64b3396fbb87f33e23da.tar.gz
otp-ee0ca14382e76d97285e64b3396fbb87f33e23da.tar.bz2
otp-ee0ca14382e76d97285e64b3396fbb87f33e23da.zip
erts: Fix bugs in binary_to_term for invalid bitstrings
<<131, 77, Len:32, Bits:8, Data/binary>> badarg if Bits > 8 Used to return internally inconsistent bitstring badarg if Len==0 and Bits > 0 Used to return invalid *huge* binary (size = (Uint)-1) badarg if Bits==0 and Len > 0 Used to return valid binary as if Bits was 8
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/erl_ext_dist.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/doc/src/erl_ext_dist.xml b/erts/doc/src/erl_ext_dist.xml
index c6849f3326..64a201cc8f 100644
--- a/erts/doc/src/erl_ext_dist.xml
+++ b/erts/doc/src/erl_ext_dist.xml
@@ -1014,10 +1014,10 @@
</row>
<tcaption></tcaption></table>
<p>
- This term represents a bitstring whose length in bits is not a
- multiple of 8 (created using the bit syntax in R12B and later).
+ This term represents a bitstring whose length in bits does
+ not have to be a multiple of 8.
The <c>Len</c> field is an unsigned 4 byte integer (big endian).
- The <c>Bits</c> field is the number of bits that are used
+ The <c>Bits</c> field is the number of bits (1-8) that are used
in the last byte in the data field,
counting from the most significant bit towards the least
significant.