Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
69353a32
Commit
69353a32
authored
Jul 25, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test that we ignore size constraints on not-known-multipler character string (utf8string)
parent
1d76f3c4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
984 additions
and
12 deletions
+984
-12
asn1c/tests/check-src/check-137.-gen-OER.c
asn1c/tests/check-src/check-137.-gen-OER.c
+7
-6
tests/136-oer-long-OK.asn1.-Pgen-OER
tests/136-oer-long-OK.asn1.-Pgen-OER
+580
-0
tests/137-oer-string-OK.asn1
tests/137-oer-string-OK.asn1
+6
-6
tests/137-oer-string-OK.asn1.-Pgen-OER
tests/137-oer-string-OK.asn1.-Pgen-OER
+391
-0
No files found.
asn1c/tests/check-src/check-137.-gen-OER.c
View file @
69353a32
...
@@ -19,14 +19,15 @@ int main() {
...
@@ -19,14 +19,15 @@ int main() {
memset
(
&
source
,
0
,
sizeof
(
source
));
memset
(
&
source
,
0
,
sizeof
(
source
));
OCTET_STRING_fromBuf
(
&
source
.
unconstrained
.
ia5
,
"foo"
,
3
);
OCTET_STRING_fromBuf
(
&
source
.
unconstrained
.
unc_
ia5
,
"foo"
,
3
);
OCTET_STRING_fromBuf
(
&
source
.
unconstrained
.
u
tf8
,
"bar"
,
3
);
OCTET_STRING_fromBuf
(
&
source
.
unconstrained
.
u
nc_utf8
,
"bar-whatever"
,
12
);
OCTET_STRING_fromBuf
(
&
source
.
unconstrained
.
universal
,
OCTET_STRING_fromBuf
(
&
source
.
unconstrained
.
un
c_un
iversal
,
"
\0\0\0
b
\0\0\0
a
\0\0\0
z"
,
12
);
"
\0\0\0
b
\0\0\0
a
\0\0\0
z"
,
12
);
OCTET_STRING_fromBuf
(
&
source
.
constrained
.
ia5
,
"ab"
,
2
);
OCTET_STRING_fromBuf
(
&
source
.
constrained
.
con_ia5
,
"ab"
,
2
);
OCTET_STRING_fromBuf
(
&
source
.
constrained
.
utf8
,
"cd"
,
2
);
OCTET_STRING_fromBuf
(
&
source
.
constrained
.
con_utf8
,
"cd-whatever"
,
11
);
OCTET_STRING_fromBuf
(
&
source
.
constrained
.
universal
,
"
\0\0\0
e
\0\0\0
f"
,
8
);
OCTET_STRING_fromBuf
(
&
source
.
constrained
.
con_universal
,
"
\0\0\0
e
\0\0\0
f"
,
8
);
asn_enc_rval_t
er
=
asn_enc_rval_t
er
=
oer_encode_to_buffer
(
&
asn_DEF_T
,
0
,
&
source
,
tmpbuf
,
sizeof
(
tmpbuf
));
oer_encode_to_buffer
(
&
asn_DEF_T
,
0
,
&
source
,
tmpbuf
,
sizeof
(
tmpbuf
));
...
...
tests/136-oer-long-OK.asn1.-Pgen-OER
0 → 100644
View file @
69353a32
This diff is collapsed.
Click to expand it.
tests/137-oer-string-OK.asn1
View file @
69353a32
...
@@ -13,14 +13,14 @@ BEGIN
...
@@ -13,14 +13,14 @@ BEGIN
T ::= SEQUENCE {
T ::= SEQUENCE {
unconstrained SEQUENCE {
unconstrained SEQUENCE {
ia5 IA5String,
unc-
ia5 IA5String,
utf8 UTF8String,
u
nc-u
tf8 UTF8String,
universal UniversalString
un
c-un
iversal UniversalString
},
},
constrained SEQUENCE {
constrained SEQUENCE {
ia5 IA5String (SIZE(2..2)),
con-
ia5 IA5String (SIZE(2..2)),
utf8 UTF8String (SIZE(2)),
con-
utf8 UTF8String (SIZE(2)),
universal UniversalString (SIZE(2 | 2))
con-
universal UniversalString (SIZE(2 | 2))
}
}
}
}
...
...
tests/137-oer-string-OK.asn1.-Pgen-OER
0 → 100644
View file @
69353a32
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment