mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
fix(termkey): fix null pointer dereference (#31792)
This commit is contained in:
@ -528,7 +528,7 @@ TermKeyResult termkey_interpret_csi_param(TermKeyCsiParam param, int *paramp, in
|
||||
if (c == ':') {
|
||||
if (length == 0) {
|
||||
*paramp = arg;
|
||||
} else {
|
||||
} else if (subparams != NULL) {
|
||||
subparams[length - 1] = arg;
|
||||
}
|
||||
|
||||
@ -543,7 +543,7 @@ TermKeyResult termkey_interpret_csi_param(TermKeyCsiParam param, int *paramp, in
|
||||
|
||||
if (length == 0) {
|
||||
*paramp = arg;
|
||||
} else {
|
||||
} else if (subparams != NULL) {
|
||||
subparams[length - 1] = arg;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user