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
4a668cbf
Commit
4a668cbf
authored
Mar 19, 2018
by
Uri Blumenthal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address Valgrind "uninitialized memory" complaints
parent
1cf4225c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
skeletons/BOOLEAN.c
skeletons/BOOLEAN.c
+14
-14
No files found.
skeletons/BOOLEAN.c
View file @
4a668cbf
...
...
@@ -61,10 +61,10 @@ asn_dec_rval_t
BOOLEAN_decode_ber
(
const
asn_codec_ctx_t
*
opt_codec_ctx
,
const
asn_TYPE_descriptor_t
*
td
,
void
**
bool_value
,
const
void
*
buf_ptr
,
size_t
size
,
int
tag_mode
)
{
BOOLEAN_t
*
st
=
(
BOOLEAN_t
*
)
*
bool_value
;
asn_dec_rval_t
rval
;
ber_tlv_len_t
length
;
ber_tlv_len_t
lidx
;
BOOLEAN_t
*
st
=
(
BOOLEAN_t
*
)
*
bool_value
;
asn_dec_rval_t
rval
=
{
0
}
;
ber_tlv_len_t
length
=
0
;
ber_tlv_len_t
lidx
=
0
;
if
(
st
==
NULL
)
{
st
=
(
BOOLEAN_t
*
)(
*
bool_value
=
CALLOC
(
1
,
sizeof
(
*
st
)));
...
...
@@ -123,7 +123,7 @@ asn_enc_rval_t
BOOLEAN_encode_der
(
const
asn_TYPE_descriptor_t
*
td
,
const
void
*
sptr
,
int
tag_mode
,
ber_tlv_tag_t
tag
,
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
asn_enc_rval_t
erval
;
asn_enc_rval_t
erval
=
{
0
}
;
const
BOOLEAN_t
*
st
=
(
const
BOOLEAN_t
*
)
sptr
;
erval
.
encoded
=
der_write_tags
(
td
,
1
,
tag_mode
,
0
,
tag
,
cb
,
app_key
);
...
...
@@ -158,7 +158,7 @@ BOOLEAN_encode_der(const asn_TYPE_descriptor_t *td, const void *sptr,
static
enum
xer_pbd_rval
BOOLEAN__xer_body_decode
(
const
asn_TYPE_descriptor_t
*
td
,
void
*
sptr
,
const
void
*
chunk_buf
,
size_t
chunk_size
)
{
BOOLEAN_t
*
st
=
(
BOOLEAN_t
*
)
sptr
;
BOOLEAN_t
*
st
=
(
BOOLEAN_t
*
)
sptr
;
const
char
*
p
=
(
const
char
*
)
chunk_buf
;
(
void
)
td
;
...
...
@@ -222,8 +222,8 @@ int
BOOLEAN_print
(
const
asn_TYPE_descriptor_t
*
td
,
const
void
*
sptr
,
int
ilevel
,
asn_app_consume_bytes_f
*
cb
,
void
*
app_key
)
{
const
BOOLEAN_t
*
st
=
(
const
BOOLEAN_t
*
)
sptr
;
const
char
*
buf
;
size_t
buflen
;
const
char
*
buf
=
NULL
;
size_t
buflen
=
0
;
(
void
)
td
;
/* Unused argument */
(
void
)
ilevel
;
/* Unused argument */
...
...
@@ -268,11 +268,11 @@ BOOLEAN_decode_uper(const asn_codec_ctx_t *opt_codec_ctx,
const
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
asn_dec_rval_t
rv
;
asn_dec_rval_t
rv
=
{
0
}
;
BOOLEAN_t
*
st
=
(
BOOLEAN_t
*
)
*
sptr
;
(
void
)
opt_codec_ctx
;
(
void
)
td
;
(
void
)
td
;
(
void
)
constraints
;
if
(
!
st
)
{
...
...
@@ -301,7 +301,7 @@ asn_enc_rval_t
BOOLEAN_encode_uper
(
const
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
const
void
*
sptr
,
asn_per_outp_t
*
po
)
{
const
BOOLEAN_t
*
st
=
(
const
BOOLEAN_t
*
)
sptr
;
const
BOOLEAN_t
*
st
=
(
const
BOOLEAN_t
*
)
sptr
;
asn_enc_rval_t
er
=
{
0
,
0
,
0
};
(
void
)
constraints
;
...
...
@@ -317,7 +317,7 @@ BOOLEAN_encode_uper(const asn_TYPE_descriptor_t *td,
asn_dec_rval_t
BOOLEAN_decode_aper
(
const
asn_codec_ctx_t
*
opt_codec_ctx
,
const
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
asn_dec_rval_t
rv
;
asn_dec_rval_t
rv
=
{
0
}
;
BOOLEAN_t
*
st
=
(
BOOLEAN_t
*
)
*
sptr
;
(
void
)
opt_codec_ctx
;
...
...
@@ -356,7 +356,7 @@ BOOLEAN_encode_aper(const asn_TYPE_descriptor_t *td,
const
asn_per_constraints_t
*
constraints
,
const
void
*
sptr
,
asn_per_outp_t
*
po
)
{
const
BOOLEAN_t
*
st
=
(
const
BOOLEAN_t
*
)
sptr
;
asn_enc_rval_t
er
;
asn_enc_rval_t
er
=
{
0
}
;
(
void
)
constraints
;
...
...
@@ -398,7 +398,7 @@ BOOLEAN_decode_oer(const asn_codec_ctx_t *opt_codec_ctx,
const
asn_oer_constraints_t
*
constraints
,
void
**
sptr
,
const
void
*
ptr
,
size_t
size
)
{
asn_dec_rval_t
ok
=
{
RC_OK
,
1
};
BOOLEAN_t
*
st
;
BOOLEAN_t
*
st
=
NULL
;
(
void
)
opt_codec_ctx
;
(
void
)
td
;
...
...
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