- 02 Feb, 2017 4 commits
-
-
Vector reverse overflow
Edward Thomson committed -
The code reversing a vector initially determines the rear-pointer by simply subtracting 1 from the vector's length. Obviously, this fails if the vector is empty, in which case we have an integer overflow. Fix the issue by returning early if the vector is empty.
Patrick Steinhardt committed -
Adam Niedzielski committed
-
Update docs for git_oid_fromstrn and p
Edward Thomson committed
-
- 27 Jan, 2017 3 commits
-
-
Matthew Plough committed
-
Fix uninitialized variable warning
Edward Thomson committed -
Fix the following warning emitted by clang: [ 16%] Building C object CMakeFiles/libgit2_clar.dir/src/submodule.c.o /Users/mplough/devel/external/libgit2/src/submodule.c:408:6: warning: variable 'i' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if ((error = load_submodule_names(names, cfg))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/mplough/devel/external/libgit2/src/submodule.c:448:20: note: uninitialized use occurs here git_iterator_free(i); ^ /Users/mplough/devel/external/libgit2/src/submodule.c:408:2: note: remove the 'if' if its condition is always false if ((error = load_submodule_names(names, cfg))) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/mplough/devel/external/libgit2/src/submodule.c:404:17: note: initialize the variable 'i' to silence this warning git_iterator *i; ^ = NULL 1 warning generated.
Matthew Plough committed
-
- 24 Jan, 2017 2 commits
-
-
WIP: some coverity & compiler warning fixes
Carlos Martín Nieto committed -
WinHTTP: set proper error messages when SSL fails
Carlos Martín Nieto committed
-
- 23 Jan, 2017 8 commits
-
-
Edward Thomson committed
-
If `attr_cache_lookup_entry` fails to find the given file, make sure that we do not try to free the given file.
Edward Thomson committed -
Edward Thomson committed
-
Edward Thomson committed
-
When we fail to load submodules, don't free the list; it is later freed unconditionally.
Edward Thomson committed -
Fix a few recent warnings
Edward Thomson committed -
Etienne Samson committed
-
Etienne Samson committed
-
- 21 Jan, 2017 15 commits
-
-
Clang analyzer run
Edward Thomson committed -
Extend packfile in increments of page_size.
Edward Thomson committed -
Edward Thomson committed
-
Fixups requested in #3912.
Edward Thomson committed -
Set up a WinHTTP status callback; inspect the WinHTTP status for WINHTTP_CALLBACK_STATUS_SECURE_FAILURE, and convert the status code to a useful message for callers.
Edward Thomson committed -
Fix general example memory leaks
Edward Thomson committed -
Use a shared buffer in calls of git_treebuilder_write to avoid heap contention
Edward Thomson committed -
The changes to `git_submodule_update_option` are now landing in v.Next.
Edward Thomson committed -
Edward Thomson committed
-
indexer: introduce `git_packfile_close`
Edward Thomson committed -
It must be non-NULL to have a valid `git_indexer`.
Edward Thomson committed -
Encapsulation!
Edward Thomson committed -
Submodule optimization
Edward Thomson committed -
Edward Thomson committed
-
Only try to `unlink` our temp file when we know that we didn't copy it into its permanent location.
Edward Thomson committed
-
- 20 Jan, 2017 3 commits
-
-
`git_submodule_status` is very slow, bottlenecked on `git_repository_head_tree`, which it uses through `submodule_update_head`. If the user has requested submodule caching, assume that they want this status cached too and skip it. Signed-off-by: David Turner <dturner@twosigma.com>
Brock Peabody committed -
Added `git_repository_submodule_cache_all` to initialze a cache of submodules on the repository so that operations looking up N submodules are O(N) and not O(N^2). Added a `git_repository_submodule_cache_clear` function to remove the cache. Also optimized the function that loads all submodules as it was itself O(N^2) w.r.t the number of submodules, having to loop through the `.gitmodules` file once per submodule. I changed it to process the `.gitmodules` file once, into a map. Signed-off-by: David Turner <dturner@twosigma.com>
Brock Peabody committed -
Signed-off-by: David Turner <dturner@twosigma.com>
David Turner committed
-
- 16 Jan, 2017 2 commits
-
-
WinHTTP: support best auth mechanism
Carlos Martín Nieto committed -
For username/password credentials, support NTLM or Basic (in that order of priority). Use the WinHTTP built-in authentication support for both, and maintain a bitfield of the supported mechanisms from the response.
Edward Thomson committed
-
- 14 Jan, 2017 3 commits
-
-
Fix handling of GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH flag.
Edward Thomson committed -
merge: set default rename threshold
Carlos Martín Nieto committed -
lhchavez committed
-