Bug 350972

Summary: Kate segfault when providing a faulty syntax file
Product: [Applications] kate Reporter: Brice Maron <merzhin>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: christoph
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: example of wrong syntax file

Description Brice Maron 2015-08-04 19:29:56 UTC
I was trying to adapt a syntax file and i provided obviously a wrong syntax file, i launched kate, and it segfault



Reproducible: Always

Steps to Reproduce:
1. install a faulty  syntax file
2. start kate


Actual Results:  
segfault

Expected Results:  
run :)
Comment 1 Brice Maron 2015-08-04 19:30:35 UTC
Created attachment 93886 [details]
example of wrong syntax file
Comment 2 Dominik Haumann 2016-04-05 20:33:29 UTC
Recursive use of IncludeRules.

We probably should have a guard against this...
Comment 3 Christoph Cullmann 2018-08-15 21:26:51 UTC
We now use syntax-highlighting for that and it has a include/recursion guard for such cases.