commit | 87f3a2ca3d0ffbfa7389bbb89add4d8d3fca6fbb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Aug 10 20:50:23 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Aug 10 20:50:23 2022 +0100 |
tree | 4d3a5d95cf79ee3f671a2969a620f5ddcb4c102b | |
parent | 82b14c143aa1e70d55509cc9fa408828e90c93de [diff] [blame] |
patch 9.0.0189: invalid memory access for text prop without highlight Problem: Invalid memory access for text prop without highlight. Solution: Check for a valid highlight ID.
diff --git a/src/highlight.c b/src/highlight.c index 2542c7b..c373afb 100644 --- a/src/highlight.c +++ b/src/highlight.c
@@ -3504,6 +3504,7 @@ /* * Translate a group ID to highlight attributes. + * "hl_id" must be valid: > 0, caller must check. */ int syn_id2attr(int hl_id)