[Geany-Devel] Segmentation fault when auto-close plug-in is enable [patch]
frank at xxxxx
Wed Oct 23 17:10:17 UTC 2013
On Wed, 23 Oct 2013 07:53:16 -0700
Matthew Brush <mbrush at codebrainz.ca> wrote:
> The final problem is that, as Lex mentioned, it's not checking
> `DOC_VALID()` (or doc->is_valid) but just that data->doc != NULL, so
> if any document that was ever activated is closed, this is going to
> explode when the document pointer is dereferenced (for reasons I
> never understood, Geany "recycles" documents, so it's entirely
> possible to have a document pointer that is neither NULL nor valid).
We have to check every plugin for this I guess. I have seen such checks
a lot last years ....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: not available
More information about the Devel