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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
resources | Loading commit data... | |
.gitignore | Loading commit data... | |
NAMING | Loading commit data... | |
t00-core.c | Loading commit data... | |
t01-data.h | Loading commit data... | |
t01-rawobj.c | Loading commit data... | |
t03-data.h | Loading commit data... | |
t03-objwrite.c | Loading commit data... | |
t04-commit.c | Loading commit data... | |
t05-revwalk.c | Loading commit data... | |
t06-index.c | Loading commit data... | |
t07-hashtable.c | Loading commit data... | |
t08-tag.c | Loading commit data... | |
t09-tree.c | Loading commit data... | |
t10-refs.c | Loading commit data... | |
t12-repo.c | Loading commit data... | |
t13-threads.c | Loading commit data... | |
t17-bufs.c | Loading commit data... | |
t18-status.c | Loading commit data... | |
test_helpers.c | Loading commit data... | |
test_helpers.h | Loading commit data... | |
test_lib.c | Loading commit data... | |
test_lib.h | Loading commit data... | |
test_main.c | Loading commit data... | |
tests.supp | Loading commit data... |