aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/testPrimStrings.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-12-12 15:12:25 +0100
committerBjörn Gustavsson <[email protected]>2012-12-19 11:52:12 +0100
commit1749a097ef9871124e6d2eecf2c6644f0c133fcc (patch)
treeab91b262c0f62bcdc9490e6ca6c570acdcb94774 /lib/asn1/test/testPrimStrings.erl
parent3d1279f3cebfdd2483c3afea9f225613fe45cd00 (diff)
downloadotp-1749a097ef9871124e6d2eecf2c6644f0c133fcc.tar.gz
otp-1749a097ef9871124e6d2eecf2c6644f0c133fcc.tar.bz2
otp-1749a097ef9871124e6d2eecf2c6644f0c133fcc.zip
per: Fix encoding of OCTET STRINGs with fixed length of 256 or more
Diffstat (limited to 'lib/asn1/test/testPrimStrings.erl')
-rw-r--r--lib/asn1/test/testPrimStrings.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/asn1/test/testPrimStrings.erl b/lib/asn1/test/testPrimStrings.erl
index 9a640a2cb1..263d9e5ed2 100644
--- a/lib/asn1/test/testPrimStrings.erl
+++ b/lib/asn1/test/testPrimStrings.erl
@@ -372,6 +372,11 @@ octet_string(Rules) ->
end,
fragmented_octet_string(Rules),
+
+ S255 = lists:seq(1, 255),
+ FixedStrings = {'OsFixedStrings',true,"","1","12","345",true,
+ S255,[$a|S255],[$a,$b|S255],397},
+ roundtrip('OsFixedStrings', FixedStrings),
ok.
fragmented_octet_string(Erules) ->