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
034ee194
Commit
034ee194
authored
Mar 14, 2016
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no dereference before check
parent
f2b2f376
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
skeletons/OCTET_STRING.c
skeletons/OCTET_STRING.c
+7
-5
skeletons/per_support.c
skeletons/per_support.c
+1
-1
No files found.
skeletons/OCTET_STRING.c
View file @
034ee194
...
@@ -1712,16 +1712,18 @@ OCTET_STRING_print_utf8(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -1712,16 +1712,18 @@ OCTET_STRING_print_utf8(asn_TYPE_descriptor_t *td, const void *sptr,
void
void
OCTET_STRING_free
(
asn_TYPE_descriptor_t
*
td
,
void
*
sptr
,
int
contents_only
)
{
OCTET_STRING_free
(
asn_TYPE_descriptor_t
*
td
,
void
*
sptr
,
int
contents_only
)
{
OCTET_STRING_t
*
st
=
(
OCTET_STRING_t
*
)
sptr
;
OCTET_STRING_t
*
st
=
(
OCTET_STRING_t
*
)
sptr
;
asn_OCTET_STRING_specifics_t
*
specs
=
td
->
specifics
asn_OCTET_STRING_specifics_t
*
specs
;
?
(
asn_OCTET_STRING_specifics_t
*
)
td
->
specifics
asn_struct_ctx_t
*
ctx
;
:
&
asn_DEF_OCTET_STRING_specs
;
asn_struct_ctx_t
*
ctx
=
(
asn_struct_ctx_t
*
)
((
char
*
)
st
+
specs
->
ctx_offset
);
struct
_stack
*
stck
;
struct
_stack
*
stck
;
if
(
!
td
||
!
st
)
if
(
!
td
||
!
st
)
return
;
return
;
specs
=
td
->
specifics
?
(
asn_OCTET_STRING_specifics_t
*
)
td
->
specifics
:
&
asn_DEF_OCTET_STRING_specs
;
ctx
=
(
asn_struct_ctx_t
*
)((
char
*
)
st
+
specs
->
ctx_offset
);
ASN_DEBUG
(
"Freeing %s as OCTET STRING"
,
td
->
name
);
ASN_DEBUG
(
"Freeing %s as OCTET STRING"
,
td
->
name
);
if
(
st
->
buf
)
{
if
(
st
->
buf
)
{
...
...
skeletons/per_support.c
View file @
034ee194
...
@@ -12,7 +12,7 @@ per_data_string(asn_per_data_t *pd) {
...
@@ -12,7 +12,7 @@ per_data_string(asn_per_data_t *pd) {
static
char
buf
[
2
][
32
];
static
char
buf
[
2
][
32
];
static
int
n
;
static
int
n
;
n
=
(
n
+
1
)
%
2
;
n
=
(
n
+
1
)
%
2
;
snprintf
(
buf
[
n
],
sizeof
(
buf
),
snprintf
(
buf
[
n
],
sizeof
(
buf
[
n
]
),
"{m=%ld span %+ld[%d..%d] (%d)}"
,
"{m=%ld span %+ld[%d..%d] (%d)}"
,
(
long
)
pd
->
moved
,
(
long
)
pd
->
moved
,
(((
long
)
pd
->
buffer
)
&
0xf
),
(((
long
)
pd
->
buffer
)
&
0xf
),
...
...
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