1. 05 Apr, 2016 1 commit
  2. 24 Mar, 2016 1 commit
  3. 23 Mar, 2016 2 commits
    • Brad King's avatar
      277b7567
    • Yves Frederix's avatar
      Avoid occasional use-after-free when a variable watch is executed · c6104028
      Yves Frederix authored
      Re-lookup a variable value when an associated VariableWatch is executed
      in cmMakefile::GetDefinition.
      
      This fixes a problem with 'def' sometimes becoming invalid due to memory
      reallocation inside an std::vector. In this case, the problem was that
      if the call to VariableAccessed actually executed a callback function,
      the internal state of the makefile has changed due to the associated
      function scope being pushed. This in turn implies that a new
      cmDefinitions instance was pushed in cmMakefile::VarTree. As
      cmLinkedTree is based on an std::vector, this push can have triggered
      reallocation of its internal memory buffer. However, as the value of
      'def', which was computed on method entry, actually points to a property
      of one of the cmDefinitions instances in cmMakefile::VarTree,
      reallocation can invalidate the value of 'def' so that it cannot simply
      be returned at the end of the function. The solution implemented here is
      to simply lookup the value of 'def' again.
      c6104028
  4. 22 Mar, 2016 2 commits
  5. 21 Mar, 2016 2 commits
  6. 18 Mar, 2016 2 commits
  7. 17 Mar, 2016 4 commits
  8. 15 Mar, 2016 4 commits
  9. 08 Mar, 2016 1 commit
  10. 07 Mar, 2016 4 commits
  11. 24 Feb, 2016 2 commits
  12. 19 Feb, 2016 2 commits
  13. 18 Feb, 2016 1 commit
  14. 17 Feb, 2016 8 commits
  15. 12 Feb, 2016 4 commits