Where is a good place to ask questions about PREfast?
Clearly there are limitations to PREfast - some which seem silly:
- it cannot recognize a
CString
as beingconst TCHAR *
binary compatible). - it fails to understand that an
if (FooClass const & foo = FooClass(args))
does in fact initialize foo.. - it complains about ILIsChild() in shlobj.h (which should be corrected @ microsoft)
- requires that the return from _setmode be checked, but the docs for _setmode indicate that it calls invalid parameter handler for an error, and returns its previous mode (utterly useless to check!)
- Incorrectly indicates a mismatch of character count and byte count when using DEVNAMES struct (e.g. wDriverOffset -- which is documented as being count of characters - hence not a mismatch)
Not sure where there are folks discussing the use of PREfast & its bugs & work-arounds?