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
0101252e
Commit
0101252e
authored
Mar 08, 2022
by
Grzegorz Niemirowski
Committed by
Mouse
Mar 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix APER length encoding edge case
parent
c098de20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
skeletons/aper_support.c
skeletons/aper_support.c
+2
-2
No files found.
skeletons/aper_support.c
View file @
0101252e
...
@@ -22,7 +22,7 @@ aper_get_length(asn_per_data_t *pd, int range, int ebits, int *repeat) {
...
@@ -22,7 +22,7 @@ aper_get_length(asn_per_data_t *pd, int range, int ebits, int *repeat) {
*
repeat
=
0
;
*
repeat
=
0
;
if
(
range
<
=
65536
&&
range
>=
0
)
if
(
range
<
65536
&&
range
>=
0
)
return
aper_get_nsnnwn
(
pd
,
range
);
return
aper_get_nsnnwn
(
pd
,
range
);
if
(
aper_get_align
(
pd
)
<
0
)
if
(
aper_get_align
(
pd
)
<
0
)
...
@@ -163,7 +163,7 @@ aper_put_length(asn_per_outp_t *po, int range, size_t length, int *need_eom) {
...
@@ -163,7 +163,7 @@ aper_put_length(asn_per_outp_t *po, int range, size_t length, int *need_eom) {
ASN_DEBUG
(
"APER put length %zu with range %d"
,
length
,
range
);
ASN_DEBUG
(
"APER put length %zu with range %d"
,
length
,
range
);
/* 10.9 X.691 Note 2 */
/* 10.9 X.691 Note 2 */
if
(
range
<
=
65536
&&
range
>=
0
)
if
(
range
<
65536
&&
range
>=
0
)
return
aper_put_nsnnwn
(
po
,
range
,
length
);
return
aper_put_nsnnwn
(
po
,
range
,
length
);
if
(
aper_put_align
(
po
)
<
0
)
if
(
aper_put_align
(
po
)
<
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