diff options
author | Björn Gustavsson <[email protected]> | 2012-12-10 17:34:12 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2012-12-18 14:46:02 +0100 |
commit | d790477de9e128b1931df655a760083de0c6125c (patch) | |
tree | 7bf79cce60b545ccdbf2e8435b00e515def421f9 /lib/asn1/test/asn1_SUITE_data | |
parent | a5567554dd98b37c1d0ecbb52fdb4f55a93a1cf8 (diff) | |
download | otp-d790477de9e128b1931df655a760083de0c6125c.tar.gz otp-d790477de9e128b1931df655a760083de0c6125c.tar.bz2 otp-d790477de9e128b1931df655a760083de0c6125c.zip |
Fix a bug in skipping of extensions
Extensions following a double bracket group were not skipped correctly.
Fix this bug and add tests to ensure that extensions are skipped
correctly.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1 b/lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1 index bb0a7cca3a..5fda19303a 100644 --- a/lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1 +++ b/lib/asn1/test/asn1_SUITE_data/SeqExtension.asn1 @@ -31,7 +31,35 @@ SeqExt4 ::= SEQUENCE int INTEGER } +SeqExt5 ::= SEQUENCE +{ + ..., + [[ name OCTET STRING (SIZE (1..8)), + shoesize INTEGER ]] +} + +SeqExt6 ::= SEQUENCE +{ + -- The spaces between the ellipsis and the comma will prevent them + -- from being removed. + ... , + [[ i1 [100] INTEGER, i2 [101] INTEGER, i3 [102] INTEGER ]], + [[ i4 [104] INTEGER, i5 [105] INTEGER ]], + [[ i6 [106] INTEGER, i7 [107] INTEGER ]] +} + SeqExt1X ::= XSeqExt1 SeqExt2X ::= XSeqExt2 +SuperSeq ::= SEQUENCE +{ + s1 SeqExt1, + s2 SeqExt2, + s3 SeqExt3, + s4 SeqExt4, + s5 SeqExt5, + s6 SeqExt6, + i INTEGER +} + END |