diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2011-12-14 12:34:43 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2011-12-14 14:31:06 -0800 |
| commit | b5daae68a4ae859653141fb097e7b7c81b25530b (patch) | |
| tree | 977115657e8b1690ea0a7d65ba49fc421b4cb392 /include | |
| parent | d6ccedddd2f76d69b05ecfa45a93cde8682776e6 (diff) | |
| download | libgit2-b5daae68a4ae859653141fb097e7b7c81b25530b.tar.gz | |
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
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
