diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-10 20:50:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-10 20:50:23 +0100 |
commit | 87f3a2ca3d0ffbfa7389bbb89add4d8d3fca6fbb (patch) | |
tree | 4d3a5d95cf79ee3f671a2969a620f5ddcb4c102b /src/highlight.c | |
parent | 82b14c143aa1e70d55509cc9fa408828e90c93de (diff) |
patch 9.0.0189: invalid memory access for text prop without highlightv9.0.0189
Problem: Invalid memory access for text prop without highlight.
Solution: Check for a valid highlight ID.
Diffstat (limited to 'src/highlight.c')
-rw-r--r-- | src/highlight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/highlight.c b/src/highlight.c index 2542c7b202..c373afb957 100644 --- a/src/highlight.c +++ b/src/highlight.c @@ -3504,6 +3504,7 @@ syn_unadd_group(void) /* * Translate a group ID to highlight attributes. + * "hl_id" must be valid: > 0, caller must check. */ int syn_id2attr(int hl_id) |