[Github-comments] [geany] Avoid possible invalid memory access when activating plugin (#732)

Jiří Techet notifications at xxxxx
Wed Nov 4 11:54:07 UTC 2015


It may happen (and happens on OS X) that plugin activation using
plugin_new() triggers some action which causes the tree view to
update. However, as the old plugin was freed before, the tree view
contains an invalid pointer to p which causes invalid memory access.

After freeing the old pointer, set the tree view value to NULL - the
plugin pointer is checked at other places for NULL value so it
doesn't crash.
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/732

-- Commit Summary --

  * Avoid possible invalid memory access when activating plugin

-- File Changes --

    M src/plugins.c (3)

-- Patch Links --

https://github.com/geany/geany/pull/732.patch
https://github.com/geany/geany/pull/732.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/732
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151104/55f38231/attachment.html>


More information about the Github-comments mailing list