aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_imm.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-04-16 10:40:32 +0200
committerBjörn Gustavsson <[email protected]>2013-05-31 14:52:23 +0200
commita1495bd1e09dbefa8595e9388140140c143088f2 (patch)
treedc19bf40b19ca89b0c6e11b0874ffefa3ce2d05b /lib/asn1/src/asn1ct_imm.erl
parente0a1be73c126998b37ca42bbdc1da3d40bef3723 (diff)
downloadotp-a1495bd1e09dbefa8595e9388140140c143088f2.tar.gz
otp-a1495bd1e09dbefa8595e9388140140c143088f2.tar.bz2
otp-a1495bd1e09dbefa8595e9388140140c143088f2.zip
PER/UPER: Fix decoding of semi-constrained INTEGERs
A semi-constrained INTEGER with a non-zero lower bound would be incorrectly decoded. This bug was introduced in R16.
Diffstat (limited to 'lib/asn1/src/asn1ct_imm.erl')
-rw-r--r--lib/asn1/src/asn1ct_imm.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl
index 5585cad925..c6803a0f96 100644
--- a/lib/asn1/src/asn1ct_imm.erl
+++ b/lib/asn1/src/asn1ct_imm.erl
@@ -198,7 +198,7 @@ per_dec_enumerated_fix_list([], Tail, _) -> Tail.
per_dec_integer_1([{'SingleValue',Value}], _Aligned) ->
{value,Value};
per_dec_integer_1([{'ValueRange',{Lb,'MAX'}}], Aligned) when is_integer(Lb) ->
- per_dec_unconstrained(Aligned);
+ per_decode_semi_constrained(Lb, Aligned);
per_dec_integer_1([{'ValueRange',{Lb,Ub}}], Aligned) when is_integer(Lb),
is_integer(Ub) ->
per_dec_constrained(Lb, Ub, Aligned);