aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data
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/test/asn1_SUITE_data
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/test/asn1_SUITE_data')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/Constraints.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Constraints.py b/lib/asn1/test/asn1_SUITE_data/Constraints.py
index a069364084..1d2f4bc44c 100644
--- a/lib/asn1/test/asn1_SUITE_data/Constraints.py
+++ b/lib/asn1/test/asn1_SUITE_data/Constraints.py
@@ -12,6 +12,10 @@ ContainedSubtype ::= INTEGER (INCLUDES Range10to20)
-- Some ranges for additional constrained number testing.
LongLong ::= INTEGER (0..18446744073709551615)
Range256to65536 ::= INTEGER (256..65536)
+SemiConstrained ::= INTEGER (100..MAX)
+NegSemiConstrained ::= INTEGER (-128..MAX)
+
+-- Other constraints
FixedSize ::= OCTET STRING (SIZE(10))
FixedSize2 ::= OCTET STRING (SIZE(10|20))
VariableSize ::= OCTET STRING (SIZE(1..10))