Skip to content
  1. Feb 20, 2012
  2. Feb 18, 2012
  3. Feb 17, 2012
  4. Feb 16, 2012
  5. Feb 15, 2012
    • Anna Zaks's avatar
      [analyzer] Malloc checker: make a bit safer. · d1ff1cbe
      Anna Zaks authored
      llvm-svn: 150556
      d1ff1cbe
    • John McCall's avatar
      Split reinterpret_casts of member pointers out from CK_BitCast; this · c62bb391
      John McCall authored
      is general goodness because representations of member pointers are
      not always equivalent across member pointer types on all ABIs
      (even though this isn't really standard-endorsed).
      
      Take advantage of the new information to teach IR-generation how
      to do these reinterprets in constant initializers.  Make sure this
      works when intermingled with hierarchy conversions (although
      this is not part of our motivating use case).  Doing this in the
      constant-evaluator would probably have been better, but that would
      require a *lot* of extra structure in the representation of
      constant member pointers:  you'd really have to track an arbitrary
      chain of hierarchy conversions and reinterpretations in order to
      get this right.  Ultimately, this seems less complex.  I also
      wasn't quite sure how to extend the constant evaluator to handle
      foldings that we don't actually want to treat as extended
      constant expressions.
      
      llvm-svn: 150551
      c62bb391
    • Anna Zaks's avatar
      [analyzer] Malloc Checker: add support for reallocf, which always frees · ac06814d
      Anna Zaks authored
      the passed in pointer on failure.
      
      llvm-svn: 150533
      ac06814d
    • Anna Zaks's avatar
      [analyzer] Malloc Checker: add support for valloc + minor code · d5157485
      Anna Zaks authored
      hardening.
      
      llvm-svn: 150532
      d5157485
  6. Feb 14, 2012
  7. Feb 13, 2012
    • Anna Zaks's avatar
      [analyzer] Malloc Checker: realloc: correct the way we are handing the · 8fd0f2a6
      Anna Zaks authored
      case when size is 0.
      
      llvm-svn: 150412
      8fd0f2a6
    • Anna Zaks's avatar
      [analyzer] Malloc checker: rework realloc handling: · d56c8794
      Anna Zaks authored
      1) Support the case when realloc fails to reduce False Positives. (We
      essentially need to restore the state of the pointer being reallocated.)
      
      2) Realloc behaves differently under special conditions (from pointer is
      null, size is 0). When detecting these cases, we should consider
      under-constrained states (size might or might not be 0). The
      old version handled this in a very hacky way. The code did not
      differentiate between definite and possible (no consideration for
      under-constrained states). Further, after processing each special case,
      the realloc processing function did not return but chained to the next
      special case processing. So you could end up in an execution in which
      you first see the states in which size is 0 and realloc ~ free(),
      followed by the states corresponding to size is not 0 followed by the
      evaluation of the regular realloc behavior.
      
      llvm-svn: 150402
      d56c8794
  8. Feb 12, 2012
  9. Feb 11, 2012
  10. Feb 10, 2012
  11. Feb 09, 2012
Loading