libgit2/tests-clay/core
Russell Belfer b5daae68a4 Allow git_buf_joinpath to accept self-joins
It was not safe for git_buf_joinpath to be used with a pointer
into the buf itself because a reallocation could invalidate
the input parameter that pointed into the buffer.  This patch
makes it safe to self join, at least for the leading input to
the join, which is the common "append" case for self joins.

Also added unit tests to explicitly cover this case.

This should actually fix #511
2011-12-14 14:31:06 -08:00
..
buffer.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
dirent.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
filebuf.c filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups 2011-11-22 01:53:56 +01:00
oid.c oid: Add git_oid_streq() which checks if an oid and an hex formatted string are equal 2011-10-13 23:15:11 +02:00
path.c Allow git_buf_joinpath to accept self-joins 2011-12-14 14:31:06 -08:00
rmdir.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
string.c Come out and Clay 2011-09-15 01:12:46 +02:00
strtol.c tests-clay: update clay 2011-10-07 23:02:02 +02:00
vector.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00