An unexpected sign extension in git_delta_apply function leads to an integer overflow in the bounds check, allowing to bypass it and to read some bytes before the `base` object. An attacker may use this flaw to get an information leak or cause a Denial of Service.
Acknowledgments: Name: Riccardo Schirone (Product Security Red Hat)
Patch: https://github.com/libgit2/libgit2/commit/3f461902dc1072acb8b7607ee65d0a0458ffac2a https://github.com/libgit2/libgit2/commit/c1577110467b701dcbcf9439ac225ea851b47d22
External References: https://github.com/libgit2/libgit2/releases/tag/v0.27.3
Created libgit2 tracking bugs for this issue: Affects: fedora-all [bug 1599319]