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
1e645c51
Commit
1e645c51
authored
Sep 06, 2024
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T: bugfix: check limits
parent
69a84825
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
common/utils/T/tracer/event.c
common/utils/T/tracer/event.c
+6
-0
No files found.
common/utils/T/tracer/event.c
View file @
1e645c51
...
...
@@ -71,6 +71,12 @@ event new_event(int type, int length, char *buffer, void *database)
e
.
buffer
=
buffer
;
f
=
get_format
(
database
,
type
);
if
(
f
.
count
>
T_MAX_ARGS
)
{
printf
(
"fatal: the T trace %s is defined to take %d arguments, but T_MAX_ARGS is %d. "
"Increase T_MAX_ARGS in event.h and recompile all the tracers (make clean; make).
\n
"
,
event_name_from_id
(
database
,
type
),
f
.
count
,
T_MAX_ARGS
);
exit
(
1
);
}
e
.
ecount
=
f
.
count
;
...
...
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