- 21 Feb, 2019 1 commit
-
-
When parsing the patch image from a string, we split the string by newlines to get a line-based view of it. To split, we use `memchr` on the buffer and limit the buffer length by the original length provided by the caller. This works just fine for the first line, but for every subsequent line we need to actually subtract the amount of bytes that we have already read. The above issue can be easily triggered by having a source buffer with at least two lines, where the second line does _not_ end in a newline. Given a string "foo\nb", we have an original length of five bytes. After having extracted the first line, we will point to 'b' and again try to `memchr(p, '\n', 5)`, resulting in an out-of-bounds read of four bytes. Fix the issue by correctly subtracting the amount of bytes already read.
Erik Aigner committed
-
- 05 May, 2017 1 commit
-
-
Right now it is only possible to create remotes from a repository. While this is probably the most common use-case, there are commands which make sense even without a repository, e.g. the equivalence of `git ls-remote`. Add a new function `git_remote_create_detached`, which simply accepts a URL.
Eric Myhre committed
-
- 11 May, 2015 1 commit
-
-
Pierre-Olivier Latour committed
-
- 06 Jun, 2014 1 commit
-
-
Add me. :)
Arthur Schreiber committed
-
- 07 Apr, 2014 1 commit
-
-
Jacques Germishuys committed
-
- 03 Oct, 2013 1 commit
-
-
In email, Torsten Bögershausen agreed that we could use his code from core Git in libgit2 under the modified license. Also, since his work is the basis for much of the precompose unicode support, I have added him to the AUTHORS file as well.
Russell Belfer committed
-
- 31 Jan, 2013 1 commit
-
-
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Sven Strickroth committed
-
- 07 Jan, 2013 1 commit
-
-
Permission recieved from Florian Forster on Jan 07 2013 to include any changes of his from core Git into LibGit2.
Martin Woodward committed
-
- 04 Jan, 2013 1 commit
-
-
Martin Woodward committed
-
- 03 Jan, 2013 1 commit
-
-
Martin Woodward committed
-
- 16 Nov, 2012 2 commits
-
-
Michael Schubert committed
-
Ben Straub committed
-
- 25 Oct, 2012 2 commits
-
-
See lines 59-60 from https://github.com/libgit2/libgit2/blob/44b1ff4c1209c34360cc0c43761c40f5f5020886/src/filter.c which contain a couple of lines of code to ignore an EOF at the end of a file when detecting if it is a text file or not. These came from this contribution that Dmitry made to core Git back in 2008 (https://github.com/git/git/commit/f9dd4bf4e58af0b4828c7e7013080dba59f8a6b9) which was committed by Junio. Dmitry gave his permission for these changes to be included in LibGit2 as well via email to vmg and myself
Martin Woodward committed -
Permission obtained from Holger Weiss to include all of his contributions to Git into LibGit2. See https://github.com/git/git/commit/21e403a7b956a95a36f218439f82b1c8af869257
Martin Woodward committed
-
- 04 Jun, 2012 1 commit
-
-
Ben Straub committed
-
- 03 May, 2012 1 commit
-
-
Depending on the operation, we need to consider gitattributes in both the work dir and the index. This adds a parameter to all of the gitattributes related functions that allows user control of attribute reading behavior (i.e. prefer workdir, prefer index, only use index). This fix also covers allowing us to check attributes (and hence do diff and status) on bare repositories. This was a somewhat larger change that I hoped because it had to change the cache key used for gitattributes files.
Russell Belfer committed
-
- 01 Apr, 2012 1 commit
-
-
Peter Drahoš committed
-
- 19 Sep, 2011 1 commit
-
-
Vicent Marti committed
-