aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-12-02 12:48:04 +0100
committerBjörn Gustavsson <[email protected]>2013-12-02 12:48:04 +0100
commit026a9226fcd47d29870f5b5d879919ce4f60d785 (patch)
tree1b2d9a4dce91b4bcaa6af9e3df66c6853d83a616 /lib/asn1/src
parent22f1c2d08701038b52099dc09b52e5b94a6f8fba (diff)
parent8d48725f062b16d94fc3371d2940d451b94a141d (diff)
downloadotp-026a9226fcd47d29870f5b5d879919ce4f60d785.tar.gz
otp-026a9226fcd47d29870f5b5d879919ce4f60d785.tar.bz2
otp-026a9226fcd47d29870f5b5d879919ce4f60d785.zip
Merge branch 'maint'
* maint: PER/UPER: Handle a range in the extension part of the constraint
Diffstat (limited to 'lib/asn1/src')
-rw-r--r--lib/asn1/src/asn1ct_imm.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl
index 20785cda8c..047156fc10 100644
--- a/lib/asn1/src/asn1ct_imm.erl
+++ b/lib/asn1/src/asn1ct_imm.erl
@@ -2155,8 +2155,10 @@ fixup_put_bits(Other) -> per_fixup(Other).
%% returns a value range that has the lower bound set to the lowest value
%% of all single values and lower bound values in C and the upper bound to
%% the greatest value.
-effective_constraint(integer,[C={{_,_},_}|_Rest]) -> % extension
- [C];
+effective_constraint(integer, [{{_,_}=Root,_}|_Rest]) ->
+ %% Normalize extension. Note that any range given for the
+ %% extension should be ignored anyway.
+ [{Root,[]}];
effective_constraint(integer, C) ->
SVs = get_constraints(C, 'SingleValue'),
SV = effective_constr('SingleValue', SVs),