This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alexander Riccio
Recipients Alexander Riccio, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-12-12.05:59:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449899987.42.0.470300295936.issue25847@psf.upfronthosting.co.za>
In-reply-to
Content
Visual Studio comes with static analysis, enabled by /analyze (command line) or "Code analysis" in the project configuration dialog. Currently, none of the CPython projects in PCbuild have Code Analysis turned on, in any configuration.

I was going to write my first patch, for issue25386, but noticed this, ran a (partial) build with /analyze, and ended up filing three bugs instead (Issue25844, Issue25845, Issue25846) from bugs /analyze found.

There's quite a bad signal-to-noise ratio at the moment, as there's lots of variable shadowing, and there's lots of code that /analyze doesn't understand is benign (parsing a tuple into a variable confuses /analyze), but there is also lots of code that isn't *obviously* incorrect.

Of the code that's not obviously incorrect, /analyze usually complains about possibly out-of-bounds reads in very complex conditions, and I really can't tell. Some assertions would probably help.


Thoughts?
History
Date User Action Args
2015-12-12 05:59:47Alexander Ricciosetrecipients: + Alexander Riccio, paul.moore, tim.golden, zach.ware, steve.dower
2015-12-12 05:59:47Alexander Ricciosetmessageid: <1449899987.42.0.470300295936.issue25847@psf.upfronthosting.co.za>
2015-12-12 05:59:47Alexander Ricciolinkissue25847 messages
2015-12-12 05:59:46Alexander Ricciocreate