]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/upload-pack-bounded-resources'
authorJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2024 23:59:42 +0000 (15:59 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2024 23:59:42 +0000 (15:59 -0800)
Various parts of upload-pack has been updated to bound the resource
consumption relative to the size of the repository to protect from
abusive clients.

* jk/upload-pack-bounded-resources:
  upload-pack: free tree buffers after parsing
  upload-pack: use PARSE_OBJECT_SKIP_HASH_CHECK in more places
  upload-pack: always turn off save_commit_buffer
  upload-pack: disallow object-info capability by default
  upload-pack: accept only a single packfile-uri line
  upload-pack: use a strmap for want-ref lines
  upload-pack: use oidset for deepen_not list
  upload-pack: switch deepen-not list to an oid_array
  upload-pack: drop separate v2 "haves" array

1  2 
object.c
revision.c
upload-pack.c

diff --cc object.c
Simple merge
diff --cc revision.c
Simple merge
diff --cc upload-pack.c
Simple merge