<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin, branch v2.7.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.7.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.7.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-03-10T19:13:46Z</updated>
<entry>
<title>Merge branch 'jk/pack-idx-corruption-safety' into maint</title>
<updated>2016-03-10T19:13:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=80047fa084f994969d42338bc3fbbb89e7d957d6'/>
<id>urn:sha1:80047fa084f994969d42338bc3fbbb89e7d957d6</id>
<content type='text'>
The code to read the pack data using the offsets stored in the pack
idx file has been made more carefully check the validity of the
data in the idx.

* jk/pack-idx-corruption-safety:
  sha1_file.c: mark strings for translation
  use_pack: handle signed off_t overflow
  nth_packed_object_offset: bounds-check extended offset
  t5313: test bounds-checks of corrupted/malicious pack/idx files
</content>
</entry>
<entry>
<title>Merge branch 'js/config-set-in-non-repository' into maint</title>
<updated>2016-03-10T19:13:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0e58b47d153a90d80518ef35c53ffb244ed4ecd6'/>
<id>urn:sha1:0e58b47d153a90d80518ef35c53ffb244ed4ecd6</id>
<content type='text'>
"git config section.var value" to set a value in per-repository
configuration file failed when it was run outside any repository,
but didn't say the reason correctly.

* js/config-set-in-non-repository:
  git config: report when trying to modify a non-existing repo config
</content>
</entry>
<entry>
<title>Merge branch 'sb/submodule-module-list-fix' into maint</title>
<updated>2016-03-10T19:13:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1191d606bb2b544e3d8429d07f8ff43aae7d8145'/>
<id>urn:sha1:1191d606bb2b544e3d8429d07f8ff43aae7d8145</id>
<content type='text'>
A helper function "git submodule" uses since v2.7.0 to list the
modules that match the pathspec argument given to its subcommands
(e.g. "submodule add &lt;repo&gt; &lt;path&gt;") has been fixed.

* sb/submodule-module-list-fix:
  submodule helper list: respect correct path prefix
</content>
</entry>
<entry>
<title>Merge branch 'jk/tighten-alloc' into maint</title>
<updated>2016-03-10T19:13:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7a6ec609ff10652541e7f716fcecf7865b94b23'/>
<id>urn:sha1:b7a6ec609ff10652541e7f716fcecf7865b94b23</id>
<content type='text'>
* jk/tighten-alloc: (23 commits)
  compat/mingw: brown paper bag fix for 50a6c8e
  ewah: convert to REALLOC_ARRAY, etc
  convert ewah/bitmap code to use xmalloc
  diff_populate_gitlink: use a strbuf
  transport_anonymize_url: use xstrfmt
  git-compat-util: drop mempcpy compat code
  sequencer: simplify memory allocation of get_message
  test-path-utils: fix normalize_path_copy output buffer size
  fetch-pack: simplify add_sought_entry
  fast-import: simplify allocation in start_packfile
  write_untracked_extension: use FLEX_ALLOC helper
  prepare_{git,shell}_cmd: use argv_array
  use st_add and st_mult for allocation size computation
  convert trivial cases to FLEX_ARRAY macros
  use xmallocz to avoid size arithmetic
  convert trivial cases to ALLOC_ARRAY
  convert manual allocations to argv_array
  argv-array: add detach function
  add helpers for allocating flex-array structs
  harden REALLOC_ARRAY and xcalloc against size_t overflow
  ...
</content>
</entry>
<entry>
<title>Merge branch 'jc/am-i-v-fix' into maint</title>
<updated>2016-03-10T19:13:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=28eec80b602559403cca96531dce2930ac362095'/>
<id>urn:sha1:28eec80b602559403cca96531dce2930ac362095</id>
<content type='text'>
The "v(iew)" subcommand of the interactive "git am -i" command was
broken in 2.6.0 timeframe when the command was rewritten in C.

* jc/am-i-v-fix:
  am -i: fix "v"iew
  pager: factor out a helper to prepare a child process to run the pager
  pager: lose a separate argv[]
</content>
</entry>
<entry>
<title>Merge branch 'nd/git-common-dir-fix' into maint</title>
<updated>2016-03-10T19:13:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c17ccaa49d00a87cefe0ef18a371e4f45e968fc'/>
<id>urn:sha1:9c17ccaa49d00a87cefe0ef18a371e4f45e968fc</id>
<content type='text'>
"git rev-parse --git-common-dir" used in the worktree feature
misbehaved when run from a subdirectory.

* nd/git-common-dir-fix:
  rev-parse: take prefix into account in --git-common-dir
</content>
</entry>
<entry>
<title>Merge branch 'nd/dwim-wildcards-as-pathspecs' into maint</title>
<updated>2016-03-10T19:13:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8834ea375a404a6c79a6d8cd8cbc9954c6f2847d'/>
<id>urn:sha1:8834ea375a404a6c79a6d8cd8cbc9954c6f2847d</id>
<content type='text'>
"git show 'HEAD:Foo[BAR]Baz'" did not interpret the argument as a
rev, i.e. the object named by the the pathname with wildcard
characters in a tree object.

* nd/dwim-wildcards-as-pathspecs:
  get_sha1: don't die() on bogus search strings
  check_filename: tighten dwim-wildcard ambiguity
  checkout: reorder check_filename conditional
</content>
</entry>
<entry>
<title>Merge branch 'ps/config-error' into maint</title>
<updated>2016-03-10T19:13:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2d5ff66c134681d846e5102a9a62ec99c2178fe1'/>
<id>urn:sha1:2d5ff66c134681d846e5102a9a62ec99c2178fe1</id>
<content type='text'>
Many codepaths forget to check return value from git_config_set();
the function is made to die() to make sure we do not proceed when
setting a configuration variable failed.

* ps/config-error:
  config: rename git_config_set_or_die to git_config_set
  config: rename git_config_set to git_config_set_gently
  compat: die when unable to set core.precomposeunicode
  sequencer: die on config error when saving replay opts
  init-db: die on config errors when initializing empty repo
  clone: die on config error in cmd_clone
  remote: die on config error when manipulating remotes
  remote: die on config error when setting/adding branches
  remote: die on config error when setting URL
  submodule--helper: die on config error when cloning module
  submodule: die on config error when linking modules
  branch: die on config error when editing branch description
  branch: die on config error when unsetting upstream
  branch: report errors in tracking branch setup
  config: introduce set_or_die wrappers
</content>
</entry>
<entry>
<title>nth_packed_object_offset: bounds-check extended offset</title>
<updated>2016-02-25T19:32:43Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-02-25T14:22:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=47fe3f6ef0f5a336db90d816c5fb4330ffa23668'/>
<id>urn:sha1:47fe3f6ef0f5a336db90d816c5fb4330ffa23668</id>
<content type='text'>
If a pack .idx file has a corrupted offset for an object, we
may try to access an offset in the .idx or .pack file that
is larger than the file's size.  For the .pack case, we have
use_pack() to protect us, which realizes the access is out
of bounds. But if the corrupted value asks us to look in the
.idx file's secondary 64-bit offset table, we blindly add it
to the mmap'd index data and access arbitrary memory.

We can fix this with a simple bounds-check compared to the
size we found when we opened the .idx file.

Note that there's similar code in index-pack that is
triggered only during "index-pack --verify". To support
both, we pull the bounds-check into a separate function,
which dies when it sees a corrupted file.

It would be nice if we could return an error, so that the
pack code could try to find a good copy of the object
elsewhere. Currently nth_packed_object_offset doesn't have
any way to return an error, but it could probably use "0" as
a sentinel value (since no object can start there). This is
the minimal fix, and we can improve the resilience later on
top.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git config: report when trying to modify a non-existing repo config</title>
<updated>2016-02-25T18:52:32Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-02-24T12:48:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=638fa623d5b5fb392a062edf61ccf086d35ab26b'/>
<id>urn:sha1:638fa623d5b5fb392a062edf61ccf086d35ab26b</id>
<content type='text'>
It is a pilot error to call `git config section.key value` outside of
any Git worktree. The message

	error: could not lock config file .git/config: No such file or
	directory

is not very helpful in that situation, though. Let's print a helpful
message instead.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
