aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-01-21 15:04:26 +0100
committerBjörn Gustavsson <[email protected]>2016-01-21 16:19:56 +0100
commitc6dcb32548ee0bb4cf5db7ef01593668358cf8b6 (patch)
tree7783a65529d2c3bda6649a018beb4da5f3773b86 /lib/asn1/test/asn1_SUITE_data
parent931b51693132839c3bc0edc3ed01364135293c1b (diff)
downloadotp-c6dcb32548ee0bb4cf5db7ef01593668358cf8b6.tar.gz
otp-c6dcb32548ee0bb4cf5db7ef01593668358cf8b6.tar.bz2
otp-c6dcb32548ee0bb4cf5db7ef01593668358cf8b6.zip
PER: Correct compilation of named INTEGERs
When a constrained INTEGER has more than 16536 values and named values, the compiler would crash when compiling to the PER format. Example: Longitude ::= INTEGER { oneMicrodegreeEast(10), oneMicrodegreeWest(-10), unavailable(1800000001) } (-1799999999..1800000001) Reported-by: Ingars
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/Prim.asn17
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Prim.asn1 b/lib/asn1/test/asn1_SUITE_data/Prim.asn1
index b4c011fd39..4fe0901683 100644
--- a/lib/asn1/test/asn1_SUITE_data/Prim.asn1
+++ b/lib/asn1/test/asn1_SUITE_data/Prim.asn1
@@ -60,4 +60,11 @@ BEGIN
e BOOLEAN,
magic INTEGER
}
+
+ Longitude ::= INTEGER {
+ oneMicrodegreeEast(10),
+ oneMicrodegreeWest(-10),
+ unavailable(1800000001)
+ } (-1799999999..1800000001)
+
END