Skip to content
  1. Jun 19, 2012
  2. Jun 18, 2012
  3. Jun 16, 2012
  4. Jun 15, 2012
    • Jordan Rose's avatar
      [analyzer] RetainCount: don't track objects init'd with a delegate · 95dfae82
      Jordan Rose authored
      We already didn't track objects that have delegates or callbacks or
      objects that are passed through void * "context pointers". It's a
      not-uncommon pattern to release the object in its callback, and so
      the leak message we give is not very helpful.
      
      llvm-svn: 158532
      95dfae82
    • James Dennett's avatar
      Documentation cleanup: · 845619a2
      James Dennett authored
      * Add \brief to produce a summary in the Doxygen output;
      * Add missing parameter names to \param commands;
      * Fix mismatched parameter names for \param commands;
      * Add a parameter name so that the \param has a target.
      
      llvm-svn: 158503
      845619a2
  5. Jun 12, 2012
  6. Jun 11, 2012
  7. Jun 08, 2012
    • Anna Zaks's avatar
      [analyzer] MallocSizeofChecker false positive: when sizeof is argument · 528b14c5
      Anna Zaks authored
      to addition.
      
      We should not to warn in case the malloc size argument is an
      addition containing 'sizeof' operator - it is common to use the pattern
      to pack values of different sizes into a buffer. 
      
      Ex:
      
      uint8_t *buffer = (uint8_t*)malloc(dataSize + sizeof(length));
      
      llvm-svn: 158219
      528b14c5
    • Anna Zaks's avatar
      [analyzer] Add experimental "issue hash" to the plist diagnostic. · b60908db
      Anna Zaks authored
      CmpRuns.py can be used to compare issues from different analyzer runs.
      Since it uses the issue line number to unique 2 issues, adding a new
      line to the beginning of a file makes all issues in the file reported as
      new. 
      
      The hash will be an opaque value which could be used (along with the
      function name) by CmpRuns to identify the same issues. This way, we only
      fail to identify the same issue from two runs if the function it appears
      in changes (not perfect, but much better than nothing).
      
      llvm-svn: 158180
      b60908db
  8. Jun 07, 2012
    • Anna Zaks's avatar
      [analyzer] Fixit for r158136. · a7dcc996
      Anna Zaks authored
      I falsely assumed that the memory spaces are equal when we reach this
      point, they might not be when memory space of one or more is stack or
      Unknown. We don't want a region from Heap space alias something with
      another memory space.
      
      llvm-svn: 158165
      a7dcc996
    • Anna Zaks's avatar
      [analyzer] Anti-aliasing: different heap allocations do not alias · 3563fde6
      Anna Zaks authored
      Add a concept of symbolic memory region belonging to heap memory space.
      When comparing symbolic regions allocated on the heap, assume that they
      do not alias. 
      
      Use symbolic heap region to suppress a common false positive pattern in
      the malloc checker, in code that relies on malloc not returning the
      memory aliased to other malloc allocations, stack.
      
      llvm-svn: 158136
      3563fde6
  9. Jun 06, 2012
  10. Jun 04, 2012
  11. Jun 02, 2012
  12. Jun 01, 2012
  13. May 31, 2012
    • Tom Care's avatar
      [analyzer] Fix BugType memory leak in IdempotentOperationChecker. · 698daefb
      Tom Care authored
      llvm-svn: 157772
      698daefb
    • Anna Zaks's avatar
      [analyzer] Cleanup for r157721. · 2774f999
      Anna Zaks authored
      We should lock the number of elements after the initial parsing is
      complete. Recursive AST visitors in AnalyzesConsumer and CallGarph can
      trigger lazy pch deserialization resulting in more calls to
      HandleTopLevelDecl and appending to the LocalTUDecls list. We should
      ignore those.
      
      llvm-svn: 157762
      2774f999
    • Ted Kremenek's avatar
      Allow some BugReports to opt-out of PathDiagnostic callstack pruning until we have significantly · 16704bb1
      Ted Kremenek authored
      improved the pruning heuristics.  The current heuristics are pretty good, but they make diagnostics
      for uninitialized variables warnings particularly useless in some cases.
      
      llvm-svn: 157734
      16704bb1
    • Anna Zaks's avatar
      [analyzer]Fix another occurrence of iterator invalidation (LocalTUDecls) · 34d89b7d
      Anna Zaks authored
      Follow up in r155693, r155680.
      
      Prevents a hard to reproduce crash with the following stack trace:
      3  libsystem_c.dylib 0x00007ff55a835050 _sigtramp + 18446744029881443184
      4  clang             0x0000000106218e97 (anonymous
      namespace)::AnalysisConsumer::HandleTranslationUnit(clang::ASTContext&)
      + 519
      5  clang             0x0000000105cf3002 clang::ParseAST(clang::Sema&,
      bool, bool) + 690
      6  clang             0x00000001059a41d8
      clang::ASTFrontendAction::ExecuteAction() + 312
      7  clang             0x00000001059a3df7 clang::FrontendAction::Execute()
      + 231
      8  clang             0x00000001059b0ecc
      clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 860
      9  clang             0x000000010595e451
      clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961
      10 clang             0x0000000105947f29 cc1_main(char const**, char
      const**, char const*, void*) + 969
      11 clang             0x0000000105958259 main + 473
      12 clang             0x0000000105947b34 start + 52
      
      llvm-svn: 157721
      34d89b7d
  14. May 27, 2012
  15. May 25, 2012
  16. May 24, 2012
  17. May 22, 2012
  18. May 21, 2012
  19. May 19, 2012
Loading