]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - www/analyzer/release_notes.html
Vendor import of clang tags/RELEASE_33/final r183502 (effectively, 3.3
[FreeBSD/FreeBSD.git] / www / analyzer / release_notes.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2           "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5   <title>Release notes for checker-XXX builds</title>
6   <link type="text/css" rel="stylesheet" href="menu.css">
7   <link type="text/css" rel="stylesheet" href="content.css">
8   <script type="text/javascript" src="scripts/menu.js"></script>
9 </head>
10 <body>
11
12 <div id="page">
13 <!--#include virtual="menu.html.incl"-->
14 <div id="content">
15
16 <h1>Release notes for <tt>checker-XXX</tt> builds</h1>
17
18 <h4 id="checker_274">checker-274</h4>
19 <p><b>built:</b> April 23, 2013</br>
20         <b>download:</b> <a href="https://attache.apple.com/AttacheWeb/dl?id=ATCdb3165f4406a4589b5878a22494c3b79">checker-274.tar.bz2</a></p>
21         <p><b>highlights:</b></p>
22         <ul>
23     <li>Improved use-after-free and mismatched deallocator checking.</li>
24     <li>Diagnostic polish.</li>
25     <li>Fixes crashes found in checker-273.</li>
26         </ul>
27
28 <h4 id="checker_273">checker-273</h4>
29 <p><b>built:</b> April 8, 2013</br>
30         <b>download:</b> <a href="https://attache.apple.com/AttacheWeb/dl?id=ATCdefcc852a99546cfbaba2a960e07478e">checker-273.tar.bz2</a></p>
31         <p><b>highlights:</b></p>
32         <ul>
33     <li>Additional checks for misuse of Foundation collection APIs.
34     <li>New C++ checker for attempting to create a reference to null.</li>
35     <li>New use-after-free checker for C++ 'delete'.</li>
36     <li>New checker for simple cases of mismatched allocators and deallocators, e.g. "delete malloc(4);"</li>
37     <li>Support for basic interprocedural analysis of C++ destructors.</li>
38     <li>Additional heuristics for suppressing null pointer false positives.</li>
39     <li>Misc. bug fixes and performance enhancements.</li>
40         </ul>
41
42 <h4 id="checker_272">checker-272</h4>
43 <p><b>built:</b> March 1, 2013</br>
44         <b>download:</b> <a href="https://attache.apple.com/AttacheWeb/dl?id=ATCbb91eedf8edf4c7388549be8f91e810d">checker-272.tar.bz2</a></p>
45         <p><b>highlights:</b></p>
46         <ul>
47         <li>Better modeling of C++ constructors:
48             <ul>
49                 <li>Interprocedural analysis support for constructors of types with trivial destructors</li>
50                 <li>Efficient model of trivial copy and move constructors</li>
51             </ul>
52         </li>
53         <li>Better diagnostics for loops that execute 0 times</li>
54         <li>Fixes a linking issue that prevented the checker from running on OS X v10.6 and earlier</li>
55         <li>Fixes for misc. crashes and false positives</li>
56         </ul>
57
58 <h4 id="checker_271">checker-271</h4>
59 <p><b>built:</b> February 8, 2013</br>
60         <b>download:</b> <a href="http://bit.ly/1299Xt3">checker-271.tar.bz2</a></p>
61         <p><b>highlights:</b></p>
62         <ul>
63         <li>Faster analysis for <tt>scan-build xcodebuild</tt> when using Xcode 4.6 and higher:
64             <ul>
65                 <li><tt>scan-build</tt> now uses Xcode's built-in interposition mechanism for the static analyzer to provide faster builds while doing static analysis (PCH files are now built).</li>
66                 <li>This change also allows <tt>scan-build</tt> to have better support for iOS project analysis without having to specifying weird SDK settings to <tt>scan-build</tt>.</li>
67             </ul></li>
68         <li>Better diagnostics for implicitly-defined member functions in C++.</li>
69         <li>New warning for <tt>malloc</tt>/<tt>free</tt> checker when passing <tt>malloc</tt>'ed pointer with non-zero offset to <tt>free()</tt>.
70         <li>Fixes for misc. parser crashes.</li>
71         <li>Newer than the static analyzer version in Xcode 4.6</li>
72         </ul>
73
74 <h4 id="checker_270">checker-270</h4>
75 <p><b>built:</b> January 4, 2013</br>
76         <b>download:</b> <a href="http://bit.ly/13ekSoV">checker-270.tar.bz2</a></p>
77         <p><b>highlights:</b></p>
78         <ul>
79                 <li>Major performance enhancements to speed up interprocedural analysis.</li>
80                 <li>Misc. bug fixes.</li>
81         </ul>
82
83 <h4 id="checker_269">checker-269</h4>
84 <p><b>built:</b> September 25, 2012</br>
85         <b>download:</b> <a href="http://bit.ly/USf8ge">checker-269.tar.bz2</a></p>
86         <p><b>highlights:</b></p>
87         <ul>
88                 <li>Significantly improves interprocedural analysis for Objective-C.</li>
89                 <li>Numerous bug fixes and heuristics to reduce false positives reported
90                         over checker-268.</li>
91         </ul>
92
93 <h4 id="checker_268">checker-268</h4>
94 <p><b>built:</b> September 11, 2012</br>
95         <b>download:</b> <a href="http://bit.ly/U75NOp">checker-268.tar.bz2</a></p>
96         <p><b>highlights:</b></p>
97         
98 <ul>
99         <li>Adds initial interprocedural analysis support for C++ and Objective-C. This will greatly improve analysis coverage and find deeper bugs in Objective-C and C++ code.</li>
100         <li>Contains a static analyzer newer than Xcode 4.4.</li>
101 </ul>
102
103 <p>NOTE: this checker build includes a <i>huge</i> number of changes. It has the potential to find many more bugs, but may report new kinds of false positives. We'd like to know about
104 these, and any other problems you encounter. When you encounter an issue, please <a href="/filing_bugs.html">file a bug report</a>.</p>
105
106 <h4 id="checker_267">checker-267</h4>
107 <p><b>built:</b> June 1, 2012</br>
108    <b>download:</b> <a href="http://bit.ly/OIdyI7">checker-267.tar.bz2</a></p>
109    <p><b>highlights:</b></p>
110
111 <p>Adds basic interprocedural analysis support for blocks.</p>
112
113 <h4 id="checker_266">checker-266</h4>
114 <p><b>built:</b> May 23, 2012</br>
115    <b>download:</b> <a href="http://bit.ly/LgtUWx">checker-266.tar.bz2</a></p>
116    <p><b>highlights:</b></p>
117
118 <p>Contains numerous stability fixes over checker-266, especially when analyzing C++11 code.</p>
119
120 <h4 id="checker_265">checker-265</h4>
121 <p><b>built:</b> May 8, 2012</br>
122    <b>download:</b> <a href="http://bit.ly/JceZBE">checker-265.tar.bz2</a></p>
123    <p><b>highlights:</b></p>
124
125 <p>This release contains a fix for a major crasher introduced in checker-264, and various refinements to
126 improve the precision and reduce the false positive rate of the analyzer. It also enables a new unix.MallocSizeof check, which reports 
127 inconsistencies between the casted type of the return value of a 'malloc/calloc/realloc' call and the operand 
128 of sizeof expressions contained within its argument(s).</p>
129
130 <h4 id="checker_264">checker-264</h4>
131
132 <p><b>built:</b> April 26, 2012</br>
133   <b>download:</b> <a href="http://bit.ly/JATSI8">checker-264.tar.bz2</a></p>
134   <p><b>highlights:</b></p>
135
136 <p>This release contains misc. bug fixes and performance enhancements over checker-263, including
137   a reduction of some kinds of false positives related to the malloc() checker.</p>
138
139 <h4 id="checker_263">checker-263</h4>
140
141 <p><b>built:</b> March 22, 2012</br>
142 <p><b>highlights:</b></p>
143
144 <ul>
145 <li>Fixes several serious bugs with inter-procedural analysis, including a case where retain/releases would be &quot;double-counted&quot;.</li>
146 </ul>
147
148 <h4 id="checker_262">checker-262</h4>
149
150 <p><b>built: </b>March 15, 2012</br>
151 <p><b>highlights:</b></p>
152
153 <ul>
154   <li>Enables experimental interprocedural analysis (within a file), which greatly amplifies the analyzer's ability to find issues.</li>
155   <li>Many bug fixes to the malloc/free checker.</li>
156   <li>Support for new Objective-C NSArray/NSDictionary/NSNumber literals syntax, and Objective-C container subscripting.</li>
157 </ul>
158
159 <p>NOTE: This build contains new interprocedural analysis that allows the analyzer to find more complicated bugs that span function boundaries.  It may have problems, performance issues, etc.  We'd like to <a href="/filing_bugs.html">hear about them</a>.
160
161 <h4 id="checker_261">checker-261</h4>
162
163 <p><b>built: </b>February 22, 2012<br>
164 <p><b>highlights:</b></p>
165
166 <ul>
167   <li>Contains a new experimental malloc/free checker.</li>
168   <li>Better support for projects using ARC.</li>
169   <li>Warns about null pointers passed as arguments to C string functions.</li>
170   <li>Warns about common anti-patterns in 'strncat' size argument, which can lead to buffer overflows.</li>
171   <li>set-xcode-analyzer now supports self-contained Xcode.app (Xcode 4.3 and later).</li>
172   <li>Contains a newer version of the analyzer than Xcode 4.3.</li>
173   <li>Misc. bug fixes and performance work.</li>
174 </ul>
175
176 <h4 id="checker_260">checker-260</h4>
177
178 <p><b>built: </b>January 25, 2012<br>
179 <p><b>highlights:</b></p>
180
181 <p>This is essentially the same as checker-259, but enables the following <i>experimental</i> checkers (please provide feedback):</p>
182
183 <ul>
184   <li>Warns about unsafe uses of CFArrayCreate, CFSetCreate, and CFDictionaryCreate</li>
185   <li>Warns about unsafe uses of getpw, gets, which are sources of buffer overflows</li>
186   <li>Warns about unsafe uses of mktemp and mktemps, which can lead to insecure temporary files</li>
187   <li>Warns about unsafe uses of vfork, which is <a href="https://www.securecoding.cert.org/confluence/display/seccode/POS33-C.+Do+not+use+vfork()">insecure</a> to use</li>
188   <li>Warns about not checking the return values of setuid, setgid, seteuid, setegid, setreuid, setregid (another security issue)</li>
189 </ul>
190
191 <h4 id="checker_259">checker-259</h4>
192
193 <p><b>built: </b>January 25, 2012<br>
194 <p><b>highlights:</b></p>
195
196 <ul>
197   <li>Contains a newer version of the analyzer than the one shipped in Xcode 4.2.</li>
198   <li>Significant performance optimizations to reduce memory usage of the analyzer.</li>
199   <li>Tweaks to scan-build to have it work more easily with Xcode projects using Clang.</li>
200   <li>Numerous bug fixes to better support code using ARC.</li>
201 </ul>
202
203 <h4 id="checker_258">checker-258</h4>
204
205 <p><b>built: </b>October 13, 2011<br>
206 <p><b>highlights:</b></p>
207
208 <ul>
209   <li>Contains a newer version of the analyzer than the one shipped in Xcode 4.2.</li>
210   <li>Adds a new security checker for looking at correct uses of the Mac OS KeyChain API.</li>
211   <li>Supports ARC (please file bugs where you see issues)</li>
212   <li>Major under-the-cover changes.  This should result in more precise results in some cases, but this is laying the groundwork for major improvements.  Please file bugs where you see regressions or issues.</li>
213 </ul>
214     
215 <h4 id="checker_257">checker-257</h4>
216
217 <p><b>built: </b>May 25, 2011<br>
218 <p><b>highlights:</b></p>
219
220 <ul>
221   <li>The analyzer is now far more aggressive with checking conformance with Core Foundation conventions.  Any function that returns a CF type must now obey the Core Foundation naming conventions, or use the <a href="/annotations.html#attr_cf_returns_retained">cf_returns_retained</a> or <a href="/annotations.html#attr_cf_returns_not_retained">cf_returns_not_retained</a> annotations.</li>
222   <li>Fixed a serious regression where the analyzer would not analyze Objective-C methods in class extensions.</li>
223   <li>Misc. bug fixes to improve analyzer precision.
224   </li>
225 </ul>
226
227 <h4 id="checker_256">checker-256</h4>
228
229 <p><b>built: </b>April 13, 2011<br>
230 <p><b>highlights:</b></p>
231
232 <ul>
233   <li>Lots of bug fixes and improvements to analyzer precision (fewer false positives, possibly more bugs found).
234   <li>Introductory analysis support for C++ and Objective-C++.
235 </ul>
236
237 <p>This build contains basic support for C++ and Objective-C++ that is ready to be tried out
238   by general users.  It is still in its infancy, but establishes a baseline for things to come.  The main hope is that it can find some
239   issues and have a reasonable false positive rate.</p>
240   
241 <p><b>Please</b> <a href="/filing_bugs.html">file bugs</a> when you see issues of any kind so we can assess
242   where development on C++ analysis support needs to be focused.</p>
243   
244 <p>To try out C++ analysis support, it should work out of the box using <tt>scan-build</tt>.  If you are using this checker build
245   as a replacement to the analyzer bundled with Xcode, first use the <tt>set-xcode-analyzer</tt> script to <a href="/xcode.html">change Xcode to use
246   your version of the analyzer</a>.  You will then need to modify one configuration file in Xcode to enable C++ analysis support.  This can
247   be done with the following steps:</p>
248   
249 <ol>
250   <li>Find the clang .xcspec file:
251 <pre>$ cd /Developer/Library
252 $ find . | grep xcspec | grep Clang
253 ./Xcode/<b>&lt;SNIP&gt;</b>/Clang LLVM 1.0.xcplugin/Contents/Resources/Clang LLVM 1.0.xcspec
254 </pre></li>
255   <li>The exact location of the file may vary depending on your installation of Xcode.  Edit that file, and look for the string &quot;--analyze&quot;:
256 <pre>
257   SourceFileOption = "--analyze";
258   FileTypes = (
259       "sourcecode.c.c",
260       "sourcecode.c.objc",
261   );
262   ...
263 </pre>
264   Change the &quot;FileTypes&quot; entry to:
265 <pre>
266   FileTypes = (
267       "sourcecode.c.c",
268       "sourcecode.c.objc",
269       "sourcecode.cpp.cpp",
270       "sourcecode.cpp.objcpp",
271   );
272 </pre></li>
273 <li>Restart Xcode.</li>
274 </ol>
275
276 <h4 id="checker_255">checker-255</h4>
277
278 <p><b>built: </b> February 11, 2011<br>
279 <p><b>highlights:</b></p>
280
281 <ul>
282 <li>Mac OS X builds are now Intel <tt>i386</tt> and <tt>x86_64</tt> only (no <tt>ppc</tt> support)</li>
283 <li>Turns on new <tt>-init</tt> method checker by default</li>
284 <li>Reduces memory usage of analyzer by 10%</li>
285 <li>Misc. fixes to reduce false positives on dead stores and idempotent operations.</li>
286 </ul>
287
288 <h4 id="checker_254">checker-254</h4>
289
290 <p><b>built: </b> January 27, 2011<br>
291 <p><b>highlights:</b></p>
292
293 <ul>
294 <li>Introduces new <tt>-init</tt> method checker to check if a super class's init method is properly called.</li>
295 <li>Objective-C retain/release checker now reasons about calls to property accessor methods (setter/getter).</li>
296 <li>Introduces new attribute <a href="annotations.html#attr_ns_consumes_self">ns_consumes_self</a> to educate the Objective-C retain/release checker about custom &quot;init-like&quot; methods that do not follow the standard Cocoa naming conventions.</li>
297 <li>Introduces new attributes <a href="annotations.html#attr_ns_consumed">ns_consumed</a> and <a href="annotations.html#attr_cf_consumed">cf_consumed</a> to educate the Objective-C retain/release checker about methods/functions that decrement the reference count of a parameter.</li>
298 </ul>
299
300 </div>
301 </div>
302 </body>
303 </html>
304