libgit2/tests/object
Russell Belfer 1e4976cb01 Be more careful with user-supplied buffers
This adds in missing calls to `git_buf_sanitize` and fixes a
number of places where `git_buf` APIs could inadvertently write
NUL terminator bytes into invalid buffers.  This also changes the
behavior of `git_buf_sanitize` to NUL terminate a buffer if it can
and of `git_buf_shorten` to do nothing if it can.

Adds tests of filtering code with zeroed (i.e. unsanitized) buffer
which was previously triggering a segfault.
2014-05-08 10:17:14 -07:00
..
blob Be more careful with user-supplied buffers 2014-05-08 10:17:14 -07:00
commit commit: safer commit creation with reference update 2014-04-30 00:41:37 +02:00
raw Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tag Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tree Merge pull request #2027 from libgit2/rb/only-windows-is-windows 2014-02-05 13:07:46 -08:00
cache.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
lookup.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
lookupbypath.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
message.c messsage: use git_buf in prettify() 2014-01-27 04:44:06 +01:00
peel.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
shortid.c Add failing test for git_object_short_id 2014-03-10 11:35:14 -07:00