[Github-comments] [geany/geany] Geany crashes on .pas file if there is any character between TYPE keyword and the first type (#2428)

Tontyna notifications at xxxxx
Sat Sep 26 16:33:57 UTC 2020


The SEGFAULT is (probably) caused by the uninitialized `tagEntryInfo` in `createPascalTag()`. 

https://github.com/geany/geany/blob/8f0909685dad46096ecf92152e82d309b0852bfd/ctags/parsers/pascal.c#L54

After having a look at https://github.com/universal-ctags/ctags/blob/86bdb84ce1fc25239c02121343cec897c12b9ffa/parsers/pascal.c#L47 I altered the line to 

```Pascal
    initTagEntry (tag, NULL, KIND_GHOST_INDEX);
```

and my Pascal files don't crash Geany anymore.

![NoPascalCrash](https://user-images.githubusercontent.com/35614937/94345511-ae6bf500-0026-11eb-868d-bfbe0bf6d874.png)






-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2428#issuecomment-699517933
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200926/e9d0cdfb/attachment.htm>


More information about the Github-comments mailing list