Skip to content
  1. May 04, 2009
    • Ted Kremenek's avatar
      Per conversations with Zhongxing, add an 'element type' to · 02e50896
      Ted Kremenek authored
      ElementRegion.  I also removed 'ElementRegion::getArrayRegion',
      although we may need to add this back.
      
      This breaks a few test cases with RegionStore:
      - 'array-struct.c' triggers an infinite recursion in RegionStoreManager.  Need to investigate.
      - misc-ps.m triggers a failure with RegionStoreManager as we now get the diagnostic:
        'Line 159: Uninitialized or undefined return value returned to caller.'
        
      There were a bunch of places that needed to be edit
      RegionStoreManager, and we may not be passing all the correct 'element
      types' down from GRExprEngine.
      
      Zhongxing: When you get a chance, could you review this?  I could have
      easily screwed up something basic in RegionStoreManager.
      
      llvm-svn: 70830
      02e50896
    • Ted Kremenek's avatar
      retain checker: · 1d9a267b
      Ted Kremenek authored
      - Fix retain checker test failures.
      - Update retain checker to have annotations override default summary effects, not completely redefine them.
      
      llvm-svn: 70828
      1d9a267b
    • Ted Kremenek's avatar
      retain checker: RetainSummaryManager now has a 'DefaultSummary' object · ff606a12
      Ted Kremenek authored
      which is returned instead of a null pointer.  This helps centralize
      the logic concerning "default effects".
      
      llvm-svn: 70826
      ff606a12
    • Ted Kremenek's avatar
      retain checker: Don't bother using a FoldingSet to unique summaries. · 1bff64e3
      Ted Kremenek authored
      We never compare summaries by their pointers, and we create only a
      handful of them when analyzing a given function.
      
      llvm-svn: 70824
      1bff64e3
  2. May 03, 2009
  3. May 02, 2009
  4. May 01, 2009
    • Ted Kremenek's avatar
      StoreManager::CastRegion: · 9c21f1d1
      Ted Kremenek authored
      - Don't layer TypedViewRegions on top of any region except
        SymbolicRegions and AllocaRegions.  This follows from my offline
        discussion within Zhongxing about how TypedViewRegions really only
        represent memory getting re-appropriated for a new purpose.
      
      Fallout	from this change:
      - Move test case from xfail_rdar_6440393.m to misc-ps-64.m
        (it now passes).
      
      - test/Analysis/fields.c now fails for region store (crash).
        Marking XFAIL.
      
      - test/Analysis/rdar-6441136-region.c now fails (only runs with region store).
        Marking XFAIL.
      
        Diagnosis: The analyzer now correctly identifies an early out-of-bounds memory
         access then the one flagged:
      
        rdar-6541136-region.c:17:3: warning: Load or store into an out-of-bound memory position.
          *p = 1;
          ^~
      
        Changing the line:
         char *p = (void*) &wonky[1];
        to
         char *p = (void*) &wonky[0];
      
        (which should delay the buffer overrun) causes region store to crash, probably
        because it expects a TypedViewRegion.
      
      - test/Analysis/casts.c (region store) now fails (crash).
        Marking XFAIL.
      
      llvm-svn: 70565
      9c21f1d1
    • Ted Kremenek's avatar
    • Ted Kremenek's avatar
      Update CMake file. · 0e3cc24e
      Ted Kremenek authored
      llvm-svn: 70563
      0e3cc24e
    • Ted Kremenek's avatar
      BugReporter (extensive diagnostics): introduce the notion of a "dead" · afbff15e
      Ted Kremenek authored
      location context.  This allows us to postpone the decision of whether
      or not a context should add a control-flow piece to the diagnostics
      when inspecting its subexpressions.
      
      llvm-svn: 70545
      afbff15e
    • Ted Kremenek's avatar
      Remove #if 0'ed code. · 29d0880e
      Ted Kremenek authored
      llvm-svn: 70542
      29d0880e
  5. Apr 30, 2009
  6. Apr 29, 2009
  7. Apr 28, 2009
  8. Apr 27, 2009
Loading