Commit 2e0fb3e
committed
fix: guard cmdline truncation independently to prevent panic
In renderBootloaderConfigDiffText, CmdlineTo could be shorter than 77
chars when CmdlineFrom was >80, causing an index out of range panic.
Each string is now truncated independently.1 parent a7cd16b commit 2e0fb3e
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
900 | 900 | | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
901 | 905 | | |
902 | 906 | | |
903 | 907 | | |
| |||
0 commit comments