libgit2/tests-clar/diff
Russell Belfer de59055017 Resolve crash with diff against empty file
It is not legal inside our `p_mmap` function to mmap a zero length
file.  This adds a test that exercises that case inside diff and
fixes the code path where we would try to do that.

The fix turns out not to be a lot of code since our default file
content is already initialized to "" which works in this case.

Fixes #1210
2013-01-08 17:11:11 -08:00
..
blob.c Share git_diff_blobs/git_diff_blob_to_buffer code 2013-01-07 15:44:22 -08:00
diff_helpers.c Update diff callback param order 2012-11-27 13:18:28 -08:00
diff_helpers.h Deploy GIT_INIT_STRUCTURE 2012-11-30 20:34:50 -08:00
diffiter.c Fix diff constructor name order confusion 2012-12-17 11:00:53 -08:00
index.c Fix some leaks and (possibly) dangling pointers in tests 2012-12-19 08:04:31 +01:00
iterator.c Fix iterator reset and add reset ranges 2012-12-10 15:38:41 -08:00
patch.c Fix warnings on Win64 build 2012-11-27 13:18:29 -08:00
rename.c Deploy GIT_DIFF_FIND_OPTIONS_INIT 2012-11-30 13:12:15 -08:00
tree.c Deploy GIT_DIFF_OPTIONS_INIT 2012-11-30 13:12:14 -08:00
workdir.c Resolve crash with diff against empty file 2013-01-08 17:11:11 -08:00