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
littleBu
OpenXG-RAN
Commits
f4862fe2
Commit
f4862fe2
authored
Jul 26, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid buffer overflow: initialize for multiple PRACH FD occasions
Maybe cosmetic
parent
4132fcc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
nfapi/open-nFAPI/fapi/src/nr_fapi_p5.c
nfapi/open-nFAPI/fapi/src/nr_fapi_p5.c
+1
-2
No files found.
nfapi/open-nFAPI/fapi/src/nr_fapi_p5.c
View file @
f4862fe2
...
...
@@ -1232,8 +1232,7 @@ uint8_t unpack_nr_config_request(uint8_t **ppReadPackedMsg, uint8_t *end, void *
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
.
tl
.
tag
=
generic_tl
.
tag
;
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
.
tl
.
length
=
generic_tl
.
length
;
result
=
(
*
unpack_fns
[
idx
].
unpack_func
)(
&
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
,
ppReadPackedMsg
,
end
);
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
=
(
nfapi_nr_num_prach_fd_occasions_t
*
)
malloc
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
.
value
*
sizeof
(
nfapi_nr_num_prach_fd_occasions_t
));
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions_list
=
calloc
(
pNfapiMsg
->
prach_config
.
num_prach_fd_occasions
.
value
,
sizeof
(
nfapi_nr_num_prach_fd_occasions_t
));
prach_root_seq_idx
=
0
;
break
;
case
NFAPI_NR_CONFIG_SCS_COMMON_TAG
:
...
...
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