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
806b0bb1
Commit
806b0bb1
authored
Mar 09, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prohibit extra data after recognized body
parent
8b8a741e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
skeletons/INTEGER.c
skeletons/INTEGER.c
+10
-3
No files found.
skeletons/INTEGER.c
View file @
806b0bb1
...
@@ -311,6 +311,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
...
@@ -311,6 +311,7 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
ST_SKIPSPACE
,
ST_SKIPSPACE
,
ST_WAITDIGITS
,
ST_WAITDIGITS
,
ST_DIGITS
,
ST_DIGITS
,
ST_EXTRASTUFF
,
}
state
=
ST_SKIPSPACE
;
}
state
=
ST_SKIPSPACE
;
/*
/*
...
@@ -373,18 +374,24 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
...
@@ -373,18 +374,24 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
el
->
enum_name
,
el
->
nat_value
);
el
->
enum_name
,
el
->
nat_value
);
state
=
ST_DIGITS
;
state
=
ST_DIGITS
;
value
=
el
->
nat_value
;
value
=
el
->
nat_value
;
break
;
lp
=
lstop
-
1
;
continue
;
}
}
ASN_DEBUG
(
"Unknown identifier for INTEGER"
);
ASN_DEBUG
(
"Unknown identifier for INTEGER"
);
}
}
return
XPBD_BROKEN_ENCODING
;
return
XPBD_BROKEN_ENCODING
;
}
}
/* Found extra non-numeric stuff */
state
=
ST_EXTRASTUFF
;
break
;
break
;
}
}
if
(
state
!=
ST_DIGITS
)
{
if
(
state
!=
ST_DIGITS
)
{
if
(
xer_is_whitespace
(
chunk_buf
,
chunk_size
))
{
if
(
xer_is_whitespace
(
lp
,
lstop
-
lp
))
{
if
(
state
!=
ST_EXTRASTUFF
)
return
XPBD_NOT_BODY_IGNORE
;
return
XPBD_NOT_BODY_IGNORE
;
/* Fall through */
}
else
{
}
else
{
ASN_DEBUG
(
"No useful digits in output"
);
ASN_DEBUG
(
"No useful digits in output"
);
return
XPBD_BROKEN_ENCODING
;
/* No digits */
return
XPBD_BROKEN_ENCODING
;
/* No digits */
...
...
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