[Github-comments] [geany/geany-plugins] scope: moved some initializations behind parameter checks in 'scptreestore.c' (#827)

Colomban Wendling notifications at xxxxx
Wed Feb 20 13:53:47 UTC 2019


This is not really the right fix, `g_return_*if_fail()` is supposed to catch programming error, to check the contract between the caller and the callee.  Admittedly here the values are accessed before the contract is checked, which is probably worth fixing, but the bug itself is that these functions get called with values they are not supposed to.

-- 
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-plugins/pull/827#issuecomment-465583018
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190220/aba388ce/attachment.html>


More information about the Github-comments mailing list