- Notifications
You must be signed in to change notification settings - Fork2.5k
Comparing changes
Open a pull request
base repository:libgit2/libgit2
Uh oh!
There was an error while loading.Please reload this page.
base:36f7e21
head repository:libgit2/libgit2
Uh oh!
There was an error while loading.Please reload this page.
compare:4ce872a
- 14commits
- 31files changed
- 1contributor
Commits on May 13, 2024
alloc: introduce debug allocators
Instead of tweaking the `stdalloc` allocator when`GIT_DEBUG_STRICT_ALLOC` is defined, actually create a debuggingallocator. This allows us to ensure that we are strict about things likenot expecting `malloc(0)` to do something useful, but we can alsointroduce an excessively pedantic `realloc` implementation that _always_creates a new buffer, throws away its original `ptr`, and overwrites thedata that's there with garbage. This may be helpful to identify placesthat make assumptions about realloc.
ethomson committedMay 13, 2024 tests: use git__ allocator functions consistently
ethomson committedMay 13, 2024 util: don't return system allocated strings in realpath
realpath(3) _may_ allocate strings (if the second param is NULL) usingthe system allocator. However, callers need an assurance that they canfree memory using git__free. If we made realpath do an allocation, thenmake sure that we strdup it into our allocator's memory.More importantly, avoid this behavior by always providing a buffer top_realpath invocations.
ethomson committedMay 13, 2024 tests: reset the allocator to the default
Instead of setting the allocator to stdalloc, just pass `NULL`, in casewe're running with the debug allocator.
ethomson committedMay 13, 2024
Commits on May 15, 2024
fixup! alloc: introduce debug allocators
ethomson committedMay 15, 2024 README: add experimental builds to ci table
ethomson committedMay 15, 2024
Commits on May 16, 2024
README: update build badges and links
Use new-style links to the build information and badges, which link to the workflow filename, not the display name.
ethomson authoredMay 16, 2024 Merge pull request#6811from libgit2/ethomson/test_allocator
Introduce a stricter debugging allocator for testing
Commits on Jun 13, 2024
Revert "commit: fix const declaration"
This reverts commitcf19ddc, whichwas breaking for several projects.
Merge pull request#6816from libgit2/ethomson/readme
README: add experimental builds to ci table
Merge pull request#6829from libgit2/ethomson/fix_constness
Fix constness issue introduced in#6716
- ethomson committed
Jun 13, 2024
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:git diff 36f7e21...4ce872a
Uh oh!
There was an error while loading.Please reload this page.