summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-15 14:50:05 -0700
committerRussell Belfer <rb@github.com>2013-05-15 14:50:05 -0700
commit79ef3be449c9d81dd0b37a30999563aa92e4679e (patch)
tree5e4e5d47c1fe3823d4fd2b1c794effcc3263b608 /include/git2/commit.h
parentf0ab73720a4e7a9b37c901a27519ea65eafeb8a6 (diff)
downloadlibgit2-79ef3be449c9d81dd0b37a30999563aa92e4679e.tar.gz
Fix diff crash when last item is untracked dir
When the last item in a diff was an untracked directory that only contained ignored items, the loop to scan the contents would run off the end of the iterator and dereference a NULL pointer. This includes a test that reproduces the problem and a fix.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions