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
dcca8ca8
Commit
dcca8ca8
authored
Sep 03, 2020
by
Evgeniy Isaev
Committed by
Mouse
Sep 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added stack overflow check bypass
parent
5c5d7325
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
skeletons/asn_internal.h
skeletons/asn_internal.h
+8
-0
No files found.
skeletons/asn_internal.h
View file @
dcca8ca8
...
@@ -128,6 +128,13 @@ asn__format_to_callback(
...
@@ -128,6 +128,13 @@ asn__format_to_callback(
* Check stack against overflow, if limit is set.
* Check stack against overflow, if limit is set.
*/
*/
#define ASN__DEFAULT_STACK_MAX (30000)
#define ASN__DEFAULT_STACK_MAX (30000)
#ifdef ASN_DISABLE_STACK_OVERFLOW_CHECK
static
int
CC_NOTUSED
ASN__STACK_OVERFLOW_CHECK
(
const
asn_codec_ctx_t
*
ctx
)
{
(
void
)
ctx
;
return
0
;
}
#else
static
int
CC_NOTUSED
static
int
CC_NOTUSED
ASN__STACK_OVERFLOW_CHECK
(
const
asn_codec_ctx_t
*
ctx
)
{
ASN__STACK_OVERFLOW_CHECK
(
const
asn_codec_ctx_t
*
ctx
)
{
if
(
ctx
&&
ctx
->
max_stack_size
)
{
if
(
ctx
&&
ctx
->
max_stack_size
)
{
...
@@ -145,6 +152,7 @@ ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) {
...
@@ -145,6 +152,7 @@ ASN__STACK_OVERFLOW_CHECK(const asn_codec_ctx_t *ctx) {
}
}
return
0
;
return
0
;
}
}
#endif
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
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