Bug 350972 - Kate segfault when providing a faulty syntax file
Summary: Kate segfault when providing a faulty syntax file
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.0.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-04 19:29 UTC by Brice Maron
Modified: 2018-08-15 21:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
example of wrong syntax file (20.95 KB, text/xml)
2015-08-04 19:30 UTC, Brice Maron
Details

Note You need to log in before you can comment on or make changes to this bug.
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.