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
62155df0
Commit
62155df0
authored
Oct 21, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add stack overflow protection for SEQUENCE and SEQUENCE OF
parent
3c37385d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
skeletons/constr_SEQUENCE_oer.c
skeletons/constr_SEQUENCE_oer.c
+3
-2
skeletons/constr_SET.c
skeletons/constr_SET.c
+1
-1
skeletons/constr_SET_OF.c
skeletons/constr_SET_OF.c
+2
-2
skeletons/constr_SET_OF_oer.c
skeletons/constr_SET_OF_oer.c
+3
-1
No files found.
skeletons/constr_SEQUENCE_oer.c
View file @
62155df0
...
...
@@ -95,10 +95,11 @@ SEQUENCE_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
asn_struct_ctx_t
*
ctx
;
/* Decoder context */
size_t
consumed_myself
=
0
;
/* Consumed bytes from ptr. */
(
void
)
opt_codec_ctx
;
(
void
)
constraints
;
if
(
ASN__STACK_OVERFLOW_CHECK
(
opt_codec_ctx
))
ASN__DECODE_FAILED
;
/*
* Create the target structure if it is not present already.
*/
...
...
skeletons/constr_SET.c
View file @
62155df0
/*
-
/*
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>.
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
...
...
skeletons/constr_SET_OF.c
View file @
62155df0
/*
-
* Copyright (c) 2003
, 2004, 2005
Lev Walkin <vlm@lionet.info>.
/*
* Copyright (c) 2003
-2017
Lev Walkin <vlm@lionet.info>.
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
...
...
skeletons/constr_SET_OF_oer.c
View file @
62155df0
...
...
@@ -117,9 +117,11 @@ SET_OF_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
asn_struct_ctx_t
*
ctx
;
/* Decoder context */
size_t
consumed_myself
=
0
;
/* Consumed bytes from ptr. */
(
void
)
opt_codec_ctx
;
(
void
)
constraints
;
if
(
ASN__STACK_OVERFLOW_CHECK
(
opt_codec_ctx
))
ASN__DECODE_FAILED
;
/*
* Create the target structure if it is not present already.
*/
...
...
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