RFC: Adding annotations to function declarations to improve static analysis

Rob Shearman robertshearman at gmail.com
Sat Sep 27 18:08:22 CDT 2008


Hi all,

This will be talked about in more detail at WineConf tomorrow, but I
just thought I'd throw this out there as a bit of background to any
discussions.

Adding annotations to function declarations allows Prefast to pick up
certain classes of bugs with varying degrees of false positives. In
particular, with patches like the attached applied
byte-count/element-count mismatches can be detected with no false
positives and relatively few false positives for off-by-one errors and
other buffer overruns. Whilst this could be maintained outside of the
main Wine tree it would be more convenient in terms of automation of
Prefast runs if a vanilla Wine tree can be used (i.e. the annotation
patches are in the official tree).

-- 
Rob Shearman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-include-Add-specstrings.h-header.patch
Type: application/mbox
Size: 10646 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080928/7b50b171/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-include-Add-SAL-annotations-for-NLS-functions-that.patch
Type: application/mbox
Size: 9099 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20080928/7b50b171/attachment-0003.bin 


More information about the wine-devel mailing list