aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/api.lua
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2026-03-11 06:17:02 +0800
committerGitHub <noreply@github.com>2026-03-10 18:17:02 -0400
commite23c083d133b5d474eec281da0acab93cfcefb35 (patch)
treef3553b11a4b0f74ccb63c71122bd66cb7e1f9a1a /runtime/lua/vim/_meta/api.lua
parent2c5266429c040b68a9b48c501732a958817f477c (diff)
downloadrneovim-e23c083d133b5d474eec281da0acab93cfcefb35.tar.gz
rneovim-e23c083d133b5d474eec281da0acab93cfcefb35.tar.bz2
rneovim-e23c083d133b5d474eec281da0acab93cfcefb35.zip
fix(highlight): avoid null deref, misc issues #38164
Problem: update_window_hl dereferenced the pmap_get result without a NULL check. Also `tmp` had the wrong type and attr_id==0 was rejected twice. Solution: check the pointer before dereferencing, change `tmp` to bool, and update the attr_id check to `< 0`.
Diffstat (limited to 'runtime/lua/vim/_meta/api.lua')
0 files changed, 0 insertions, 0 deletions