ŁŁukasz LangaSome versions of leaks want -exclude to not have a space
| Files | Last commit | Last update |
|---|---|---|
docs: properly parse enum values For enum values that are constructed, not literal integers, we need to parse the inner / implicit expression. For example: GIT_DIFF_REVERSE = (1u << 0) | 1 year ago | |
scripts: add backporting script This adds a simple script for backporting pull requests to older branches. It accepts as parameters a list of pull request numbers which whose commits are to be cherry-picked. The identification of PRs currently happens by using the commit message of the merge of the PR, which should conform to the message "Merge pull request #<PR>". While the heuristic works in practice, we could instead also use the direct references from GitHub via "pull/#<PR>/head". This requires the user to have all these references fetched, though, so we can just use the current heuristic until we experience any issues with that. | 8 years ago | |
Some versions of leaks want -exclude to not have a space | 11 months ago | |
cmake: specify project version We currently do not set up a project version within CMake, meaning that it can't be use by other projects including libgit2 as a sub-project and also not by other tools like IDEs. This commit changes this to always set up a project version, but instead of extracting it from the "version.h" header we now set it up directly. This is mostly to avoid mis-use of the previous LIBGIT2_VERSION variables, as we should now always use the libgit2_VERSION ones that are set up by CMake if one provides the "VERSION" keyword to the project() call. While this is one more moving target we need to adjust on releases, this commit also adjusts our release script to verify that the project version was incremented as expected. | 6 years ago | |
Add CI support for Memory and UndefinedBehavior Sanitizers This change adds two new build targets: MSan and UBSan. This is because even though OSS-Fuzz is great and adds a lot of coverage, it only does that for the fuzz targets, so the rest of the codebase is not necessarily run with the Sanitizers ever :( So this change makes sure that MSan/UBSan warnings don't make it into the codebase. As part of this change, the Ubuntu focal container is introduced. It builds mbedTLS and libssh2 as debug libraries into /usr/local and as MSan-enabled libraries into /usr/local/msan. This latter part is needed because MSan requires the binary and all its dependent libraries to be built with MSan support so that memory allocations and deallocations are tracked correctly to avoid false positives. | 6 years ago | |
Make the pack and mwindow implementations data-race-free This change fixes a packfile heap corruption that can happen when interacting with multiple packfiles concurrently across multiple threads. This is exacerbated by setting a lower mwindow open file limit. This change: * Renames most of the internal methods in pack.c to clearly indicate that they expect to be called with a certain lock held, making reasoning about the state of locks a bit easier. * Splits the git_pack_file lock in two: the one in git_pack_file only protects the index_map. The protection to git_mwindow_file is now in that struct. * Explicitly checks for freshness of the git_pack_file in git_packfile_unpack_header: this allows the mwindow implementation to close files whenever there is enough cache pressure, and git_packfile_unpack_header will reopen the packfile if needed. * After a call to p_munmap(), the data and len fields are poisoned with NULL to make use-after-frees more evident and crash rather than being open to the possibility of heap corruption. * Adds a test case to prevent this from regressing in the future. Fixes: #5591 | 5 years ago | |
coverity: attempt to model clar's assertions Coverity considers that anything that looks like assert() behaves like it (ie. side-effects would be skipped on a NDEBUG build). As we have a bunch of those in the test suite (128), this would ensure Coverity isn't confused. | 7 years ago | |
errors: update static analysis tools for giterr Update GITERR and giterr usages in the static code analysis tools to use the new names. | 7 years ago | |
ci: valgrind shouldn't report on exited children Now that we (may) exec a child process to do ssh, we don't want valgrind reporting on that. Suppress children in valgrind runs. | 3 years ago | |
Merge remote-tracking branch 'origin/main' into libgit2-httpparser | 2 years ago |