1. 11 Nov, 2016 1 commit
    • git_repository_open_ext: fix handling of $GIT_NAMESPACE · c9e967a1
      The existing code would set a namespace of "" (empty string) with
      GIT_NAMESPACE unset.  In a repository where refs/heads/namespaces/
      exists, that can produce incorrect results.  Detect that case and avoid
      setting the namespace at all.
      
      Since that makes the last assignment to error conditional, and the
      previous assignment can potentially get GIT_ENOTFOUND, set error to 0
      explicitly to prevent the call from incorrectly failing with
      GIT_ENOTFOUND.
      Josh Triplett committed
  2. 04 Nov, 2016 3 commits
  3. 02 Nov, 2016 9 commits
  4. 01 Nov, 2016 2 commits
  5. 31 Oct, 2016 6 commits
  6. 28 Oct, 2016 4 commits
    • pqueue: resolve possible NULL pointer dereference · 95fa3880
      The `git_pqueue` struct allows being fixed in its total number of
      entries. In this case, we simply throw away items that are
      inserted into the priority queue by examining wether the new item
      to be inserted has a higher priority than the previous smallest
      one.
      
      This feature somewhat contradicts our pqueue implementation in
      that it is allowed to not have a comparison function. In fact, we
      also fail to check if the comparison function is actually set in
      the case where we add a new item into a fully filled fixed-size
      pqueue.
      
      As we cannot determine which item is the smallest item in absence
      of a comparison function, we fix the `NULL` pointer dereference
      by simply dropping all new items which are about to be inserted
      into a full fixed-size pqueue.
      Patrick Steinhardt committed
    • coverity: only analyze the master branch of the main repository · 561276ee
      We used to only execute Coverity analysis on the 'development'
      branch before commit 998f0016 (Refine build limitation,
      2014-01-15), which refined Coverity build limitations. While we
      do not really use the 'development' branch anymore, it does
      still make sense to only analyze a single branch, as otherwise
      Coverity might get confused.
      
      Re-establish the restriction such that we only analyze libgit2's
      'master' branch. Also fix the message announcing why we do not
      actually analyze a certain build.
      Patrick Steinhardt committed
    • Merge pull request #3973 from pks-t/pks/memleak-fixes · e3298a33
      Trivial memory leak fixes in test suite
      Patrick Steinhardt committed
  7. 27 Oct, 2016 2 commits
  8. 16 Oct, 2016 1 commit
  9. 15 Oct, 2016 1 commit
  10. 12 Oct, 2016 1 commit
  11. 10 Oct, 2016 10 commits