Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.

Commit d7cbae1

Browse files
author
Julien Desfossez
committed
Fix: potential buffer not null terminated
Reported-by: Coverity Scan CID 1368965 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING) Signed-off-by: Julien Desfossez <[email protected]>
1 parent f741d75 commit d7cbae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ union max_key_size {
221221

222222
struct event_data {
223223
char breakdown[MAX_PAYLOAD];
224-
char userspace_proc[TASK_COMM_LEN];
224+
char userspace_proc[TASK_COMM_LEN + 1];
225225
u64 enter_userspace_ts;
226226
u64 prev_ts;
227227
unsigned int pos;

0 commit comments

Comments
 (0)