aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-08-08 11:58:58 +0200
committerBjörn Gustavsson <[email protected]>2013-09-03 16:27:41 +0200
commitc28e00b24d4d67a8aac55415c36dcab2537db2cc (patch)
tree46c26d378b4e64aea81cb28c6fa18ab1f77e5429 /lib/asn1/src
parentdf7bb30fd0e8161e5146705fd117aa0bb115fbe7 (diff)
downloadotp-c28e00b24d4d67a8aac55415c36dcab2537db2cc.tar.gz
otp-c28e00b24d4d67a8aac55415c36dcab2537db2cc.tar.bz2
otp-c28e00b24d4d67a8aac55415c36dcab2537db2cc.zip
PER, UPER: Fix encoding/decoding of open types greater than 16K
Diffstat (limited to 'lib/asn1/src')
-rw-r--r--lib/asn1/src/asn1ct_imm.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl
index 7994889a38..892178f61b 100644
--- a/lib/asn1/src/asn1ct_imm.erl
+++ b/lib/asn1/src/asn1ct_imm.erl
@@ -138,8 +138,7 @@ per_dec_raw_bitstring(Constraint, Aligned) ->
dec_string(Constraint, 1, Aligned, 'BIT STRING').
per_dec_open_type(Aligned) ->
- {get_bits,decode_unconstrained_length(true, Aligned),
- [8,binary,{align,Aligned}]}.
+ dec_string(no, 8, Aligned, open_type).
per_dec_real(Aligned) ->
Dec = fun(V, Buf) ->