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
7193cf06
Commit
7193cf06
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OER encoding of pure NULLs verified
parent
22cef6cb
vlm_master
velichkov_s1ap_plus_option_group
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
skeletons/constr_CHOICE.c
skeletons/constr_CHOICE.c
+1
-1
skeletons/constr_CHOICE_oer.c
skeletons/constr_CHOICE_oer.c
+1
-1
tests/tests-randomized/Makefile.am
tests/tests-randomized/Makefile.am
+1
-0
tests/tests-randomized/bundles/15-CHOICE-bundle.txt
tests/tests-randomized/bundles/15-CHOICE-bundle.txt
+1
-0
No files found.
skeletons/constr_CHOICE.c
View file @
7193cf06
...
...
@@ -1176,7 +1176,7 @@ CHOICE_compare(const asn_TYPE_descriptor_t *td, const void *aptr, const void *bp
unsigned
apresent
=
0
;
unsigned
bpresent
=
0
;
const
void
*
amember
=
_get_member_ptr
(
td
,
aptr
,
&
aelm
,
&
apresent
);
const
void
*
bmember
=
_get_member_ptr
(
td
,
bptr
,
&
belm
,
&
a
present
);
const
void
*
bmember
=
_get_member_ptr
(
td
,
bptr
,
&
belm
,
&
b
present
);
if
(
amember
&&
bmember
)
{
if
(
apresent
==
bpresent
)
{
...
...
This diff is collapsed.
Click to expand it.
skeletons/constr_CHOICE_oer.c
View file @
7193cf06
...
...
@@ -357,7 +357,7 @@ CHOICE_encode_oer(asn_TYPE_descriptor_t *td,
er
=
elm
->
type
->
op
->
oer_encoder
(
elm
->
type
,
elm
->
encoding_constraints
.
oer_constraints
,
memb_ptr
,
cb
,
app_key
);
if
(
er
.
encoded
>
0
)
if
(
er
.
encoded
>
=
0
)
er
.
encoded
+=
tag_len
;
return
er
;
...
...
This diff is collapsed.
Click to expand it.
tests/tests-randomized/Makefile.am
View file @
7193cf06
...
...
@@ -38,6 +38,7 @@ TESTS += bundles/11-BMPString-bundle.txt
TESTS
+=
bundles/12-UniversalString-bundle.txt
TESTS
+=
bundles/13-UTCTime-bundle.txt
TESTS
+=
bundles/14-GeneralizedTime-bundle.txt
TESTS
+=
bundles/15-CHOICE-bundle.txt
EXTRA_DIST
=
\
random-test-driver.c
\
...
...
This diff is collapsed.
Click to expand it.
tests/tests-randomized/bundles/15-CHOICE-bundle.txt
0 → 100644
View file @
7193cf06
CHOICE { null NULL }
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