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
30219de2
Commit
30219de2
authored
Jul 12, 2022
by
Pau Espin Pedrol
Committed by
Mouse
Jul 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aper: Fix several encoding where need_eom=true
parent
f2e1d207
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
skeletons/INTEGER_aper.c
skeletons/INTEGER_aper.c
+1
-1
skeletons/OCTET_STRING_aper.c
skeletons/OCTET_STRING_aper.c
+1
-1
skeletons/aper_opentype.c
skeletons/aper_opentype.c
+1
-1
skeletons/constr_SEQUENCE_OF_aper.c
skeletons/constr_SEQUENCE_OF_aper.c
+1
-1
No files found.
skeletons/INTEGER_aper.c
View file @
30219de2
...
@@ -297,7 +297,7 @@ INTEGER_encode_aper(const asn_TYPE_descriptor_t *td,
...
@@ -297,7 +297,7 @@ INTEGER_encode_aper(const asn_TYPE_descriptor_t *td,
if
(
per_put_many_bits
(
po
,
buf
,
8
*
mayEncode
))
if
(
per_put_many_bits
(
po
,
buf
,
8
*
mayEncode
))
ASN__ENCODE_FAILED
;
ASN__ENCODE_FAILED
;
buf
+=
mayEncode
;
buf
+=
mayEncode
;
if
(
need_eom
&&
aper_put_length
(
po
,
-
1
,
0
,
0
))
ASN__ENCODE_FAILED
;
if
(
need_eom
&&
(
aper_put_length
(
po
,
-
1
,
0
,
0
)
<
0
))
ASN__ENCODE_FAILED
;
}
}
ASN__ENCODED_OK
(
er
);
ASN__ENCODED_OK
(
er
);
...
...
skeletons/OCTET_STRING_aper.c
View file @
30219de2
...
@@ -404,7 +404,7 @@ OCTET_STRING_encode_aper(const asn_TYPE_descriptor_t *td,
...
@@ -404,7 +404,7 @@ OCTET_STRING_encode_aper(const asn_TYPE_descriptor_t *td,
buf
+=
maySave
>>
3
;
buf
+=
maySave
>>
3
;
sizeinunits
-=
maySave
;
sizeinunits
-=
maySave
;
assert
(
!
(
maySave
&
0x07
)
||
!
sizeinunits
);
assert
(
!
(
maySave
&
0x07
)
||
!
sizeinunits
);
if
(
need_eom
&&
aper_put_length
(
po
,
-
1
,
0
,
0
))
if
(
need_eom
&&
(
aper_put_length
(
po
,
-
1
,
0
,
0
)
<
0
))
ASN__ENCODE_FAILED
;
/* End of Message length */
ASN__ENCODE_FAILED
;
/* End of Message length */
}
}
...
...
skeletons/aper_opentype.c
View file @
30219de2
...
@@ -106,7 +106,7 @@ aper_open_type_put(const asn_TYPE_descriptor_t *td,
...
@@ -106,7 +106,7 @@ aper_open_type_put(const asn_TYPE_descriptor_t *td,
if
(
per_put_many_bits
(
po
,
bptr
,
maySave
*
8
))
break
;
if
(
per_put_many_bits
(
po
,
bptr
,
maySave
*
8
))
break
;
bptr
=
(
char
*
)
bptr
+
maySave
;
bptr
=
(
char
*
)
bptr
+
maySave
;
toGo
-=
maySave
;
toGo
-=
maySave
;
if
(
need_eom
&&
aper_put_length
(
po
,
-
1
,
0
,
0
))
{
if
(
need_eom
&&
(
aper_put_length
(
po
,
-
1
,
0
,
0
)
<
0
))
{
FREEMEM
(
buf
);
FREEMEM
(
buf
);
return
-
1
;
return
-
1
;
}
}
...
...
skeletons/constr_SEQUENCE_OF_aper.c
View file @
30219de2
...
@@ -79,7 +79,7 @@ SEQUENCE_OF_encode_aper(const asn_TYPE_descriptor_t *td,
...
@@ -79,7 +79,7 @@ SEQUENCE_OF_encode_aper(const asn_TYPE_descriptor_t *td,
ASN__ENCODE_FAILED
;
ASN__ENCODE_FAILED
;
}
}
if
(
need_eom
&&
aper_put_length
(
po
,
-
1
,
0
,
0
))
if
(
need_eom
&&
(
aper_put_length
(
po
,
-
1
,
0
,
0
)
<
0
))
ASN__ENCODE_FAILED
;
/* End of Message length */
ASN__ENCODE_FAILED
;
/* End of Message length */
}
}
...
...
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