Problem: Invalid memory access for text prop without highlight.
Solution: Check for a valid highlight ID.
|| text_props[tpi].tp_id < 0)
&& text_props[tpi].tp_id != -MAXCOL)
{
- used_attr = syn_id2attr(pt->pt_hl_id);
+ if (pt->pt_hl_id > 0)
+ used_attr = syn_id2attr(pt->pt_hl_id);
text_prop_type = pt;
text_prop_attr =
hl_combine_attr(text_prop_attr, used_attr);
/*
* Translate a group ID to highlight attributes.
+ * "hl_id" must be valid: > 0, caller must check.
*/
int
syn_id2attr(int hl_id)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 189,
/**/
188,
/**/