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
24354e1c
Commit
24354e1c
authored
Oct 26, 2017
by
Vasil Velichkov
Committed by
Lev Walkin
Oct 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix UPER decoding of SET OF with more then 16K elements
parent
b623e8d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
skeletons/constr_SET_OF.c
skeletons/constr_SET_OF.c
+2
-2
No files found.
skeletons/constr_SET_OF.c
View file @
24354e1c
...
...
@@ -1054,7 +1054,7 @@ SET_OF_encode_uper(const asn_TYPE_descriptor_t *td,
for
(
encoded_edx
=
0
;
(
ssize_t
)
encoded_edx
<
list
->
count
;)
{
ssize_t
may_encode
;
s
s
ize_t
edx
;
size_t
edx
;
int
need_eom
=
0
;
if
(
ct
&&
ct
->
effective_bits
>=
0
)
{
...
...
@@ -1065,7 +1065,7 @@ SET_OF_encode_uper(const asn_TYPE_descriptor_t *td,
if
(
may_encode
<
0
)
ASN__ENCODE_FAILED
;
}
for
(
edx
=
0
;
edx
<
may_encode
;
edx
++
)
{
for
(
edx
=
encoded_edx
;
edx
<
encoded_edx
+
may_encode
;
edx
++
)
{
const
struct
_el_buffer
*
el
=
&
encoded_els
[
edx
];
if
(
asn_put_many_bits
(
po
,
el
->
buf
,
(
8
*
el
->
length
)
-
el
->
bits_unused
)
<
0
)
{
...
...
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