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
08b293e8
Unverified
Commit
08b293e8
authored
May 05, 2023
by
Mouse
Committed by
GitHub
May 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #127 from tangzhikun/bugfix-issue-126
fix issue #126: decoding extensible CHOICE error
parents
bc6a4c8b
fc23d52b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
skeletons/constr_CHOICE_aper.c
skeletons/constr_CHOICE_aper.c
+2
-2
No files found.
skeletons/constr_CHOICE_aper.c
View file @
08b293e8
...
...
@@ -53,8 +53,8 @@ CHOICE_decode_aper(const asn_codec_ctx_t *opt_codec_ctx,
if
(
specs
->
ext_start
==
-
1
)
ASN__DECODE_FAILED
;
if
(
ct
&&
ct
->
upper_bound
>=
ct
->
lower_bound
)
{
value
=
aper_get_nsnnwn
(
pd
,
ct
->
upper_bound
-
ct
->
lower_bound
+
1
);
if
(
specs
&&
specs
->
tag2el_count
>
specs
->
ext_start
)
{
value
=
aper_get_nsnnwn
(
pd
,
specs
->
tag2el_count
-
specs
->
ext_start
);
/* extension elements range */
if
(
value
<
0
)
ASN__DECODE_STARVED
;
value
+=
specs
->
ext_start
;
if
((
unsigned
)
value
>=
td
->
elements_count
)
...
...
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