This repository was archived by the owner on Aug 16, 2026. It is now read-only.
Commit db49a75
⚡ Bolt: 🔒 Explicitly null-terminate ltsymbol after strncpy (#9)
* Explicitly null-terminate ltsymbol after strncpy
Added explicit null-termination for `ltsymbol` in `arrangemon`, `createmon`,
and `setlayout` to fix potential buffer over-reads.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
* Replace strncpy with snprintf for ltsymbol
Replaced `strncpy` with `snprintf` when assigning `ltsymbol` in
`arrangemon`, `createmon`, and `setlayout` to guarantee null-termination
and fix potential buffer over-reads.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 2183914 commit db49a75
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
1538 | 1538 | | |
1539 | 1539 | | |
1540 | 1540 | | |
1541 | | - | |
| 1541 | + | |
1542 | 1542 | | |
1543 | 1543 | | |
1544 | 1544 | | |
| |||
0 commit comments