- 13 Feb, 2015 11 commits
-
-
Make our overflow checking look more like gcc and clang's, so that we can substitute it out with the compiler instrinsics on platforms that support it. This means dropping the ability to pass `NULL` as an out parameter. As a result, the macros also get updated to reflect this as well.
Edward Thomson committed -
https://github.com/attractivechaos/klib/pull/42/files introduces `kreallocarray`. Hook that up as our `git__reallocarray`.
Edward Thomson committed -
Edward Thomson committed
-
Add some helper functions to check for overflow in a type-specific manner.
Edward Thomson committed -
Ensure that the given length to `p_read` is of ssize_t and ensure that callers test the return as if it were an `ssize_t`.
Edward Thomson committed -
Use `size_t` to hold the size of arrays to ease overflow checking, lest we check for overflow of a `size_t` then promptly truncate by packing the length into a smaller type.
Edward Thomson committed -
Have the ALLOC_OVERFLOW testing macros also simply set_oom in the case where a computation would overflow, so that callers don't need to.
Edward Thomson committed -
Introduce `git_buf_grow_by` to incrementally increase the size of a `git_buf`, performing an overflow calculation on the growth.
Edward Thomson committed -
Introduce git__reallocarray that checks the product of the number of elements and element size for overflow before allocation. Also introduce git__mallocarray that behaves like calloc, but without the `c`. (It does not zero memory, for those truly worried about every cycle.)
Edward Thomson committed -
Edward Thomson committed
-
Introduce some helper macros to test integer overflow from arithmetic and set error message appropriately.
Edward Thomson committed
-
- 12 Feb, 2015 1 commit
-
-
Checkout performance
Carlos Martín Nieto committed
-
- 11 Feb, 2015 9 commits
-
-
Remove stale reflog namespace directory before branch creation
Carlos Martín Nieto committed -
Ensure we can make a repo at the root of the filesystem
Carlos Martín Nieto committed -
Add libssh2's library and include directories.
Carlos Martín Nieto committed -
Large merge perf test.
Carlos Martín Nieto committed -
Update some third-party copyrights
Carlos Martín Nieto committed -
Fix doc comment formatting
Carlos Martín Nieto committed -
John Haley committed
-
Edward Thomson committed
-
Edward Thomson committed
-
- 10 Feb, 2015 2 commits
-
-
Ben Chatelain committed
-
Ben Chatelain committed
-
- 06 Feb, 2015 5 commits
-
-
Speed up AppVeyor builds.
nulltoken committed -
AppVeyor build machines come with Python 2.7 and CMake 2.8 pre-installed and in the PATH.
Arthur Schreiber committed -
Jeff Hostetler committed
-
repository: parse init.templatedir as a path
Edward Thomson committed -
This is a path so we must use the path getter so we get the tilde expansion done.
Carlos Martín Nieto committed
-
- 05 Feb, 2015 9 commits
-
-
Update clar to d17c7f6
Edward Thomson committed -
Edward Thomson committed
-
Don't try to strip trailing paths from the root directory on Windows (trying to create `C:` will fail).
Edward Thomson committed -
`p_stat` calls `git_win32_path_from_utf8`, which canonicalizes the path. Do not further try to modify the path, else we trim the trailing slash from a root directory and try to access `C:` instead of `C:/`.
Edward Thomson committed -
Edward Thomson committed
-
Test to ensure that we can create a repository at the filesystem root. Introduces a new test environment variable, `GITTEST_INVASIVE_FILESYSTEM` for tests that do terrible things like escaping the clar sandbox and writing to the root directory. It is expected that the CI builds will enable this but that normal people would not want this.
Edward Thomson committed -
Handle 8dot3 filenames being disabled on Win32
Edward Thomson committed -
for-each-ref example: initialize libgit2 in main
Edward Thomson committed -
I don't get how it was working without git_libgit2_init() call. I run it and libgit2 throws assertion somewhere in its internals. Now it works. Updated commit with shutdown at the end.
Boris Egorov committed
-
- 04 Feb, 2015 3 commits
-
-
Fixes for pedantry
Edward Thomson committed -
Edward Thomson committed
-
README.md: Add Swift bindings "Gift"
Edward Thomson committed
-