Home | History | Annotate | Download | only in analyzer
      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_277">checker-277</h4>
     19 <p><b>built:</b> October 28, 2015</br>
     20 	<b>download:</b> <a href="downloads/checker-277.tar.bz2">checker-277.tar.bz2</a></p>
     21 	<p><b>highlights:</b></p>
     22 	<ul>
     23     <li>Includes about 20 months of change to Clang itself.</li>
     24     <li>New checker for C++ leaks is turned on by default.</li>
     25     <li>Added various small checks and bug fixes.</li>
     26     <li>Added experimental checkers for Objective-C:</li>
     27     <ul>
     28         <li>New localizability checks:
     29         <ul>
     30             <li>Checker warning about uses of non-localized <tt>NSString</tt>s passed to UI methods expecting localized strings.</li>
     31             <li>Checker warning when the comment argument is missing from <tt>NSLocalizedString</tt> macros.</li>
     32             <li>These can be enabled by passing the following command to <tt>scan-build</tt>:
     33 <br />
     34   &nbsp;&nbsp;<tt>-enable-checker alpha.osx.cocoa.NonLocalizedStringChecker,alpha.osx.cocoa.EmptyLocalizationContextChecker</tt>
     35 </li>
     36         </ul>
     37         </li>
     38         <li>New checks for <tt>_Nonnull</tt> type qualifiers. These can be enabled with:
     39 <br />
     40   &nbsp;&nbsp;<tt>-enable-checker nullability.NullPassedToNonnull,nullability.NullReturnedFromNonnull</tt></li>
     41         <li>New checks for misuse of Objective-C generics. These can be enabled with <tt>-enable-checker alpha.osx.cocoa.ObjCGenerics</tt>.</li>
     42     </ul>
     43     <li>Support for <tt>cf_returns_retained</tt> and <tt>cf_returns_not_retained</tt> attributes in out-parameters.</li>
     44     <li>The analyzer now creates one state for a range switch case instead of multiple, resulting in performance improvements.</li>
     45     <li>Now requires OS X 10.7 or later.
     46 	</ul>
     47 
     48 <h4 id="checker_276">checker-276</h4>
     49 <p><b>built:</b> February 19, 2014</br>
     50 	<b>download:</b> <a href="downloads/checker-276.tar.bz2">checker-276.tar.bz2</a></p>
     51 	<p><b>highlights:</b></p>
     52 	<ul>
     53     <li>Includes about 9 months of change to Clang itself (improved C++11/14 support, etc.)</li>
     54     <li>More precise modeling of Objective-C properties, which enables the analyzer to find more bugs.</li>
     55     <li>Includes a new "missing call to <tt>super</tt>" warning, which looks for common pattern in iOS/OSX APIs that require chaining a call to a super class's implementation of a method.</li>
     56     <li>Accepts <tt>-arch arm64</tt> (which may be passed by Xcode 5.0), but for the time being analyzes code in such cases as <tt>-arch armv7s</tt>.</li>
     57     <li>Many sundry fixes, improvements to C++ support, etc.</li>
     58 	</ul>
     59   
     60 <h4 id="checker_275">checker-275</h4>
     61 <p><b>built:</b> May 23, 2013</br>
     62 	<b>download:</b> <a href="downloads/checker-275.tar.bz2">checker-275.tar.bz2</a></p>
     63 	<p><b>highlights:</b></p>
     64 	<ul>
     65     <li>Xcode: Includes a new arrow layout algorithm for issue presentation within Xcode.  The goal is for interprocedural bug reports to look cleaner and less busy (and easier to read).  Feedback appreciated.</li>
     66     <li>Xcode: Bugs that occur within header code (e.g., C++) are now reported within the callers in the main source file.  For example, if you misuse a C++ function declared in a header the primary diagnostic will be in the caller (in the main source file).  The full expanded path, however, will show the bug in the header code as well.  These kind of cross-file issues are currently only support by Xcode, not the HTML output.</li>
     67     <li>This build is built with LLVM's Link-Time Optimization (LTO), which should make it slightly faster.</li>
     68     <li>LTO also reduces the download size (about 19% smaller than checker-274).</li>
     69     <li>Many sundry fixes.</li>
     70 	</ul>
     71 
     72 <h4 id="checker_274">checker-274</h4>
     73 <p><b>built:</b> April 23, 2013</br>
     74 	<b>download:</b> <a href="https://attache.apple.com/AttacheWeb/dl?id=ATCdb3165f4406a4589b5878a22494c3b79">checker-274.tar.bz2</a></p>
     75 	<p><b>highlights:</b></p>
     76 	<ul>
     77     <li>Improved use-after-free and mismatched deallocator checking.</li>
     78     <li>Diagnostic polish.</li>
     79     <li>Fixes crashes found in checker-273.</li>
     80 	</ul>
     81 
     82 <h4 id="checker_273">checker-273</h4>
     83 <p><b>built:</b> April 8, 2013</br>
     84 	<b>download:</b> <a href="https://attache.apple.com/AttacheWeb/dl?id=ATCdefcc852a99546cfbaba2a960e07478e">checker-273.tar.bz2</a></p>
     85 	<p><b>highlights:</b></p>
     86 	<ul>
     87     <li>Additional checks for misuse of Foundation collection APIs.
     88     <li>New C++ checker for attempting to create a reference to null.</li>
     89     <li>New use-after-free checker for C++ 'delete'.</li>
     90     <li>New checker for simple cases of mismatched allocators and deallocators, e.g. "delete malloc(4);"</li>
     91     <li>Support for basic interprocedural analysis of C++ destructors.</li>
     92     <li>Additional heuristics for suppressing null pointer false positives.</li>
     93     <li>Misc. bug fixes and performance enhancements.</li>
     94 	</ul>
     95 
     96 <h4 id="checker_272">checker-272</h4>
     97 <p><b>built:</b> March 1, 2013</p>
     98 	<p><b>highlights:</b></p>
     99 	<ul>
    100         <li>Better modeling of C++ constructors:
    101             <ul>
    102                 <li>Interprocedural analysis support for constructors of types with trivial destructors</li>
    103                 <li>Efficient model of trivial copy and move constructors</li>
    104             </ul>
    105         </li>
    106         <li>Better diagnostics for loops that execute 0 times</li>
    107         <li>Fixes a linking issue that prevented the checker from running on OS X v10.6 and earlier</li>
    108         <li>Fixes for misc. crashes and false positives</li>
    109 	</ul>
    110 
    111 <h4 id="checker_271">checker-271</h4>
    112 <p><b>built:</b> February 8, 2013</p>
    113 	<p><b>highlights:</b></p>
    114 	<ul>
    115         <li>Faster analysis for <tt>scan-build xcodebuild</tt> when using Xcode 4.6 and higher:
    116             <ul>
    117                 <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>
    118                 <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>
    119             </ul></li>
    120         <li>Better diagnostics for implicitly-defined member functions in C++.</li>
    121         <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>.
    122         <li>Fixes for misc. parser crashes.</li>
    123         <li>Newer than the static analyzer version in Xcode 4.6</li>
    124 	</ul>
    125 
    126 <h4 id="checker_270">checker-270</h4>
    127 <p><b>built:</b> January 4, 2013</p>
    128 	<p><b>highlights:</b></p>
    129 	<ul>
    130 		<li>Major performance enhancements to speed up interprocedural analysis.</li>
    131 		<li>Misc. bug fixes.</li>
    132 	</ul>
    133 
    134 <h4 id="checker_269">checker-269</h4>
    135 <p><b>built:</b> September 25, 2012</p>
    136 	<p><b>highlights:</b></p>
    137 	<ul>
    138 		<li>Significantly improves interprocedural analysis for Objective-C.</li>
    139 		<li>Numerous bug fixes and heuristics to reduce false positives reported
    140 			over checker-268.</li>
    141 	</ul>
    142 
    143 <h4 id="checker_268">checker-268</h4>
    144 <p><b>built:</b> September 11, 2012</p>
    145 	<p><b>highlights:</b></p>
    146 	
    147 <ul>
    148 	<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>
    149 	<li>Contains a static analyzer newer than Xcode 4.4.</li>
    150 </ul>
    151 
    152 <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
    153 these, and any other problems you encounter. When you encounter an issue, please <a href="/filing_bugs.html">file a bug report</a>.</p>
    154 
    155 <h4 id="checker_267">checker-267</h4>
    156 <p><b>built:</b> June 1, 2012</p>
    157    <p><b>highlights:</b></p>
    158 
    159 <p>Adds basic interprocedural analysis support for blocks.</p>
    160 
    161 <h4 id="checker_266">checker-266</h4>
    162 <p><b>built:</b> May 23, 2012</p>
    163    <p><b>highlights:</b></p>
    164 
    165 <p>Contains numerous stability fixes over checker-266, especially when analyzing C++11 code.</p>
    166 
    167 <h4 id="checker_265">checker-265</h4>
    168 <p><b>built:</b> May 8, 2012</p>
    169    <p><b>highlights:</b></p>
    170 
    171 <p>This release contains a fix for a major crasher introduced in checker-264, and various refinements to
    172 improve the precision and reduce the false positive rate of the analyzer. It also enables a new unix.MallocSizeof check, which reports 
    173 inconsistencies between the casted type of the return value of a 'malloc/calloc/realloc' call and the operand 
    174 of sizeof expressions contained within its argument(s).</p>
    175 
    176 <h4 id="checker_264">checker-264</h4>
    177 
    178 <p><b>built:</b> April 26, 2012</p>
    179   <p><b>highlights:</b></p>
    180 
    181 <p>This release contains misc. bug fixes and performance enhancements over checker-263, including
    182   a reduction of some kinds of false positives related to the malloc() checker.</p>
    183 
    184 <h4 id="checker_263">checker-263</h4>
    185 
    186 <p><b>built:</b> March 22, 2012</p>
    187 <p><b>highlights:</b></p>
    188 
    189 <ul>
    190 <li>Fixes several serious bugs with inter-procedural analysis, including a case where retain/releases would be &quot;double-counted&quot;.</li>
    191 </ul>
    192 
    193 <h4 id="checker_262">checker-262</h4>
    194 
    195 <p><b>built: </b>March 15, 2012</p>
    196 <p><b>highlights:</b></p>
    197 
    198 <ul>
    199   <li>Enables experimental interprocedural analysis (within a file), which greatly amplifies the analyzer's ability to find issues.</li>
    200   <li>Many bug fixes to the malloc/free checker.</li>
    201   <li>Support for new Objective-C NSArray/NSDictionary/NSNumber literals syntax, and Objective-C container subscripting.</li>
    202 </ul>
    203 
    204 <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>.
    205 
    206 <h4 id="checker_261">checker-261</h4>
    207 
    208 <p><b>built: </b>February 22, 2012<br>
    209 <p><b>highlights:</b></p>
    210 
    211 <ul>
    212   <li>Contains a new experimental malloc/free checker.</li>
    213   <li>Better support for projects using ARC.</li>
    214   <li>Warns about null pointers passed as arguments to C string functions.</li>
    215   <li>Warns about common anti-patterns in 'strncat' size argument, which can lead to buffer overflows.</li>
    216   <li>set-xcode-analyzer now supports self-contained Xcode.app (Xcode 4.3 and later).</li>
    217   <li>Contains a newer version of the analyzer than Xcode 4.3.</li>
    218   <li>Misc. bug fixes and performance work.</li>
    219 </ul>
    220 
    221 <h4 id="checker_260">checker-260</h4>
    222 
    223 <p><b>built: </b>January 25, 2012<br>
    224 <p><b>highlights:</b></p>
    225 
    226 <p>This is essentially the same as checker-259, but enables the following <i>experimental</i> checkers (please provide feedback):</p>
    227 
    228 <ul>
    229   <li>Warns about unsafe uses of CFArrayCreate, CFSetCreate, and CFDictionaryCreate</li>
    230   <li>Warns about unsafe uses of getpw, gets, which are sources of buffer overflows</li>
    231   <li>Warns about unsafe uses of mktemp and mktemps, which can lead to insecure temporary files</li>
    232   <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>
    233   <li>Warns about not checking the return values of setuid, setgid, seteuid, setegid, setreuid, setregid (another security issue)</li>
    234 </ul>
    235 
    236 <h4 id="checker_259">checker-259</h4>
    237 
    238 <p><b>built: </b>January 25, 2012<br>
    239 <p><b>highlights:</b></p>
    240 
    241 <ul>
    242   <li>Contains a newer version of the analyzer than the one shipped in Xcode 4.2.</li>
    243   <li>Significant performance optimizations to reduce memory usage of the analyzer.</li>
    244   <li>Tweaks to scan-build to have it work more easily with Xcode projects using Clang.</li>
    245   <li>Numerous bug fixes to better support code using ARC.</li>
    246 </ul>
    247 
    248 <h4 id="checker_258">checker-258</h4>
    249 
    250 <p><b>built: </b>October 13, 2011<br>
    251 <p><b>highlights:</b></p>
    252 
    253 <ul>
    254   <li>Contains a newer version of the analyzer than the one shipped in Xcode 4.2.</li>
    255   <li>Adds a new security checker for looking at correct uses of the Mac OS KeyChain API.</li>
    256   <li>Supports ARC (please file bugs where you see issues)</li>
    257   <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>
    258 </ul>
    259     
    260 <h4 id="checker_257">checker-257</h4>
    261 
    262 <p><b>built: </b>May 25, 2011<br>
    263 <p><b>highlights:</b></p>
    264 
    265 <ul>
    266   <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>
    267   <li>Fixed a serious regression where the analyzer would not analyze Objective-C methods in class extensions.</li>
    268   <li>Misc. bug fixes to improve analyzer precision.
    269   </li>
    270 </ul>
    271 
    272 <h4 id="checker_256">checker-256</h4>
    273 
    274 <p><b>built: </b>April 13, 2011<br>
    275 <p><b>highlights:</b></p>
    276 
    277 <ul>
    278   <li>Lots of bug fixes and improvements to analyzer precision (fewer false positives, possibly more bugs found).
    279   <li>Introductory analysis support for C++ and Objective-C++.
    280 </ul>
    281 
    282 <p>This build contains basic support for C++ and Objective-C++ that is ready to be tried out
    283   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
    284   issues and have a reasonable false positive rate.</p>
    285   
    286 <p><b>Please</b> <a href="/filing_bugs.html">file bugs</a> when you see issues of any kind so we can assess
    287   where development on C++ analysis support needs to be focused.</p>
    288   
    289 <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
    290   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
    291   your version of the analyzer</a>.  You will then need to modify one configuration file in Xcode to enable C++ analysis support.  This can
    292   be done with the following steps:</p>
    293   
    294 <ol>
    295   <li>Find the clang .xcspec file:
    296 <pre>$ cd /Developer/Library
    297 $ find . | grep xcspec | grep Clang
    298 ./Xcode/<b>&lt;SNIP&gt;</b>/Clang LLVM 1.0.xcplugin/Contents/Resources/Clang LLVM 1.0.xcspec
    299 </pre></li>
    300   <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;:
    301 <pre>
    302   SourceFileOption = "--analyze";
    303   FileTypes = (
    304       "sourcecode.c.c",
    305       "sourcecode.c.objc",
    306   );
    307   ...
    308 </pre>
    309   Change the &quot;FileTypes&quot; entry to:
    310 <pre>
    311   FileTypes = (
    312       "sourcecode.c.c",
    313       "sourcecode.c.objc",
    314       "sourcecode.cpp.cpp",
    315       "sourcecode.cpp.objcpp",
    316   );
    317 </pre></li>
    318 <li>Restart Xcode.</li>
    319 </ol>
    320 
    321 <h4 id="checker_255">checker-255</h4>
    322 
    323 <p><b>built: </b> February 11, 2011<br>
    324 <p><b>highlights:</b></p>
    325 
    326 <ul>
    327 <li>Mac OS X builds are now Intel <tt>i386</tt> and <tt>x86_64</tt> only (no <tt>ppc</tt> support)</li>
    328 <li>Turns on new <tt>-init</tt> method checker by default</li>
    329 <li>Reduces memory usage of analyzer by 10%</li>
    330 <li>Misc. fixes to reduce false positives on dead stores and idempotent operations.</li>
    331 </ul>
    332 
    333 <h4 id="checker_254">checker-254</h4>
    334 
    335 <p><b>built: </b> January 27, 2011<br>
    336 <p><b>highlights:</b></p>
    337 
    338 <ul>
    339 <li>Introduces new <tt>-init</tt> method checker to check if a super class's init method is properly called.</li>
    340 <li>Objective-C retain/release checker now reasons about calls to property accessor methods (setter/getter).</li>
    341 <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>
    342 <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>
    343 </ul>
    344 
    345 </div>
    346 </div>
    347 </body>
    348 </html>
    349 
    350