Skip to content
  1. Aug 05, 2011
  2. Aug 04, 2011
  3. Aug 03, 2011
  4. Aug 02, 2011
  5. Jul 31, 2011
  6. Jul 29, 2011
    • Ted Kremenek's avatar
      [analyzer] Overhaul how the static analyzer expects CFGs by forcing CFGs to be... · e9fda1e4
      Ted Kremenek authored
      [analyzer] Overhaul how the static analyzer expects CFGs by forcing CFGs to be linearized only when used by the static analyzer.  This required a rewrite of LiveVariables, and exposed a ton of subtle bugs.
      
      The motivation of this large change is to drastically simplify the logic in ExprEngine going forward.
      
      Some fallout is that the output of some BugReporterVisitors is not as accurate as before; those will
      need to be fixed over time.  There is also some possible performance regression as RemoveDeadBindings
      will be called frequently; this can also be improved over time.
      
      llvm-svn: 136419
      e9fda1e4
    • Ted Kremenek's avatar
      [analyzer] fix bug in malloc checker where the tracked symbol would not... · e227f493
      Ted Kremenek authored
      [analyzer] fix bug in malloc checker where the tracked symbol would not properly be removed from the state.
      
      llvm-svn: 136418
      e227f493
  7. Jul 25, 2011
  8. Jul 23, 2011
  9. Jul 19, 2011
  10. Jul 16, 2011
  11. Jul 15, 2011
  12. Jul 02, 2011
  13. Jun 21, 2011
    • Douglas Gregor's avatar
      Introduce a new AST node describing reference binding to temporaries. · fe31481f
      Douglas Gregor authored
      MaterializeTemporaryExpr captures a reference binding to a temporary
      value, making explicit that the temporary value (a prvalue) needs to
      be materialized into memory so that its address can be used. The
      intended AST invariant here is that a reference will always bind to a
      glvalue, and MaterializeTemporaryExpr will be used to convert prvalues
      into glvalues for that binding to happen. For example, given
      
        const int& r = 1.0;
      
      The initializer of "r" will be a MaterializeTemporaryExpr whose
      subexpression is an implicit conversion from the double literal "1.0"
      to an integer value. 
      
      IR generation benefits most from this new node, since it was
      previously guessing (badly) when to materialize temporaries for the
      purposes of reference binding. There are likely more refactoring and
      cleanups we could perform there, but the introduction of
      MaterializeTemporaryExpr fixes PR9565, a case where IR generation
      would effectively bind a const reference directly to a bitfield in a
      struct. Addresses <rdar://problem/9552231>.
      
      llvm-svn: 133521
      fe31481f
  14. Jun 20, 2011
  15. Jun 16, 2011
  16. Jun 15, 2011
    • Jordy Rose's avatar
      [analyzer] Revise CStringChecker's modelling of strcpy() and strcat(): · 634c12d2
      Jordy Rose authored
      - (bounded copies) Be more conservative about how much is being copied.
      - (str(n)cat) If we can't compute the exact final length of an append operation, we can still lower-bound it.
      - (stpcpy) Fix the conjured return value at the end to actually be returned.
      
      This requires these supporting changes:
      - C string metadata symbols are still live even when buried in a SymExpr.
      - "Hypothetical" C string lengths, to represent a value that /will/ be passed to setCStringLength() if all goes well. (The idea is to allow for temporary constrainable symbols that may end up becoming permanent.)
      - The 'checkAdditionOverflow' helper makes sure that the two strings being appended in a strcat don't overflow size_t. This should never *actually* happen; the real effect is to keep the final string length from "wrapping around" in the constraint manager.
      
      This doesn't actually test the "bounded" operations (strncpy and strncat) because they can leave strings unterminated. Next on the list!
      
      llvm-svn: 133046
      634c12d2
    • Jordy Rose's avatar
      [analyzer] If a C string length is UnknownVal, clear any existing length... · 0e9fb28e
      Jordy Rose authored
      [analyzer] If a C string length is UnknownVal, clear any existing length binding. No tests yet because the only thing that sets string length is strcpy(), and that needs some work anyway.
      
      llvm-svn: 133044
      0e9fb28e
  17. Jun 14, 2011
  18. Jun 04, 2011
Loading