aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/Constructed.asn
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-09-29 12:55:21 +0200
committerBjörn Gustavsson <[email protected]>2014-09-29 13:19:43 +0200
commit62bab9a7a2adbe3f1b7960a35d7dab1d7119c639 (patch)
treec9c5e56c1dd5fc3c8435f816d0fc05f7325f17c6 /lib/asn1/test/asn1_SUITE_data/Constructed.asn
parent2397a14d1113bc2d334dee908269cf3b63c46314 (diff)
downloadotp-62bab9a7a2adbe3f1b7960a35d7dab1d7119c639.tar.gz
otp-62bab9a7a2adbe3f1b7960a35d7dab1d7119c639.tar.bz2
otp-62bab9a7a2adbe3f1b7960a35d7dab1d7119c639.zip
BER decoding: Don't allow primitives with indefinite lengths
According to the BER encoding rules, only constructed values may have indefinite lengths. A primitive value must be encoded with a definite length. Reported-by: Simon Cornish
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/Constructed.asn')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/Constructed.asn6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Constructed.asn b/lib/asn1/test/asn1_SUITE_data/Constructed.asn
index 09a66d0c0d..bd49741726 100644
--- a/lib/asn1/test/asn1_SUITE_data/Constructed.asn
+++ b/lib/asn1/test/asn1_SUITE_data/Constructed.asn
@@ -1,6 +1,3 @@
-
-
-
Constructed DEFINITIONS ::=
BEGIN
@@ -20,4 +17,7 @@ C ::= CHOICE {
S3 ::= SEQUENCE {i INTEGER}
S3ext ::= SEQUENCE {i INTEGER, ...}
+
+OS ::= OCTET STRING
+
END