Commit 65c2dee
Fix buffer overflow when object name exceeds RT_NAME_MAX
- Truncate obj_name_len to RT_NAME_MAX - 1 before memcpy
- Prevents buffer overflow in both rt_object_init() and rt_object_allocate()
- Ensures safe truncation of long object names
Co-authored-by: Rbb666 <[email protected]>1 parent 6ce5619 commit 65c2dee
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
| 518 | + | |
517 | 519 | | |
518 | 520 | | |
519 | 521 | | |
| |||
0 commit comments