Hi. I'm using the Coverity scan [1] for static source analyzes for mCtrl project [2] on a regular basis before each release. I've recently got some false positives resulting from each usage of the macro InlineIsEqualGUID from mingw-w64 system headers.
It actually results in reports similar to this: CID 1127326 (#1 of 1): Out-of-bounds access (ARRAY_VS_SINGLETON)3. ptr_arith: Using "&IID_IUnknown.Data1" as an array. This might corrupt or misinterpret adjacent memory locations. Obviously it is the result of the ugly casting the macro uses; it compares two GUIDs as arrays of four DWORDs). Are you interested to get patches improving such kinds of problems even if they complicate the headers? (Well, I didn't yet think how to redefine the macro to get rid of the issue, but I guess such redefinitions would be more complex in general.) Thanks, Martin [1] https://scan.coverity.com/ [2] http://sourceforge.net/projects/mctrl ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
