22 Commits

Author SHA1 Message Date
Sam Altier
e39578a2c5 authors: add self to authors 2025-09-24 14:51:21 -04:00
Talya Connor
d88347a89c AUTHORS: add self. 2025-03-29 18:51:33 +11:00
Venus Xeon-Blonde
9213ed3b75 Add myself to AUTHORS 2024-07-10 14:42:23 -04:00
Erik Aigner
014d49559a apply: prevent OOB read when parsing source buffer
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.
2019-02-21 08:48:05 +01:00
Eric Myhre
4bc16c376b remote: add function to create detached remotes
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.
2017-05-05 10:41:45 +02:00
Pierre-Olivier Latour
bf8dd3f53d Added git_stash_apply() and git_stash_pop() APIs 2015-05-11 14:11:53 -04:00
Arthur Schreiber
05554d839d Update AUTHORS
Add me. :)
2014-06-06 11:01:20 +02:00
Jacques Germishuys
553184a762 Update AUTHORS 2014-04-07 20:18:17 +02:00
Russell Belfer
966bb17a57 Add to Git authors who have agreed to relicense
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.
2013-10-03 10:44:13 -07:00
Sven Strickroth
01e7128f39 Added Sven Strickroth to AUTHORS
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2013-01-31 19:48:00 +01:00
Philip Kelley
8e89839d29 Merge pull request #1202 from martinwoodward/add-florian
Add Florian Forster to hall of fame
2013-01-07 07:06:18 -08:00
Martin Woodward
32f59bfb18 Add Florian Forster to hall of fame
Permission recieved from Florian Forster on Jan 07 2013 to include
any changes of his from core Git into LibGit2.
2013-01-07 14:52:42 +00:00
Martin Woodward
c999e1c307 Add Brian Downing to the hall of fame 2013-01-03 23:42:04 +00:00
Philip Kelley
5d4cdb0494 Merge pull request #1095 from martinwoodward/authors
Update to Authors
2012-11-22 08:10:35 -08:00
Michael Schubert
96acc0b615 AUTHORS: cleanup 2012-11-16 02:37:26 +01:00
Ben Straub
414bd93667 Include Microsoft in AUTHORS 2012-11-15 16:20:02 -08:00
Martin Woodward
bb3b305281 Add Dmitry Kakurin to hall of fame
See lines 59-60 from 44b1ff4c12/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 (f9dd4bf4e5) 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
2012-10-25 03:22:38 +02:00
Martin Woodward
e4c2e006ca Add Holger Weiss to hall of fame
Permission obtained from Holger Weiss to include all of his contributions to Git into LibGit2. See 21e403a7b9
2012-10-25 02:23:59 +02:00
Ben Straub
e267c9fc1a Complete the AUTHORS list. 2012-06-04 06:03:08 -07:00
Russell Belfer
f917481ee8 Support reading attributes from index
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.
2012-05-03 16:37:25 -07:00
Peter Drahoš
3433a69954 Removed my duplicate entry 2012-04-02 00:32:21 +02:00
Vicent Marti
7aece9cfa2 Who makes the magic possible? 2011-09-19 06:14:54 +03:00