Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
spbro
OpenXG-RAN
Commits
8561a0f7
Commit
8561a0f7
authored
Jun 12, 2023
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asn1: properly initialize variables for uper_decode() and aper_decode()
parent
f8f9f8ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+2
-2
openair2/RRC/NR/rrc_gNB_NGAP.c
openair2/RRC/NR/rrc_gNB_NGAP.c
+2
-2
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
8561a0f7
...
...
@@ -647,7 +647,7 @@ int main(int argc, char **argv)
AssertFatal(scg_fd != NULL,"no reconfig.raw file\n");
char buffer[1024];
int msg_len=fread(buffer,1,1024,scg_fd);
NR_RRCReconfiguration_t *NR_RRCReconfiguration;
NR_RRCReconfiguration_t *NR_RRCReconfiguration
= NULL
;
printf("Decoding NR_RRCReconfiguration (%d bytes)\n",msg_len);
asn_dec_rval_t dec_rval = uper_decode_complete( NULL,
...
...
@@ -667,7 +667,7 @@ int main(int argc, char **argv)
AssertFatal(NR_RRCReconfiguration->criticalExtensions.present == NR_RRCReconfiguration__criticalExtensions_PR_rrcReconfiguration,"wrong NR_RRCReconfiguration->criticalExstions.present type\n");
NR_RRCReconfiguration_IEs_t *reconfig_ies = NR_RRCReconfiguration->criticalExtensions.choice.rrcReconfiguration;
NR_CellGroupConfig_t *secondaryCellGroup;
NR_CellGroupConfig_t *secondaryCellGroup
= NULL
;
dec_rval = uper_decode_complete( NULL,
&asn_DEF_NR_CellGroupConfig,
(void **)&secondaryCellGroup,
...
...
openair2/RRC/NR/rrc_gNB_NGAP.c
View file @
8561a0f7
...
...
@@ -277,7 +277,7 @@ static void fill_qos(NGAP_QosFlowSetupRequestList_t *qos, pdusession_t *session)
static
int
decodePDUSessionResourceSetup
(
pdusession_t
*
session
)
{
NGAP_PDUSessionResourceSetupRequestTransfer_t
*
pdusessionTransfer
;
NGAP_PDUSessionResourceSetupRequestTransfer_t
*
pdusessionTransfer
=
NULL
;
for
(
int
i
=
0
;
i
<
session
->
pdusessionTransfer
.
length
;
i
++
)
printf
(
"%02x:"
,
session
->
pdusessionTransfer
.
buffer
[
i
]);
printf
(
"
\n
"
);
...
...
@@ -852,7 +852,7 @@ static void fill_qos2(NGAP_QosFlowAddOrModifyRequestList_t *qos, pdusession_t *s
static
void
decodePDUSessionResourceModify
(
pdusession_t
*
param
,
const
ngap_pdu_t
pdu
)
{
NGAP_PDUSessionResourceModifyRequestTransfer_t
*
pdusessionTransfer
;
NGAP_PDUSessionResourceModifyRequestTransfer_t
*
pdusessionTransfer
=
NULL
;
asn_dec_rval_t
dec_rval
=
aper_decode
(
NULL
,
&
asn_DEF_NGAP_PDUSessionResourceModifyRequestTransfer
,
(
void
**
)
&
pdusessionTransfer
,
pdu
.
buffer
,
pdu
.
length
,
0
,
0
);
if
(
dec_rval
.
code
!=
RC_OK
)
{
...
...
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