mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +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
	 Gregory Anders
					Gregory Anders