git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] nd/resolve-ref v2
@ 2011-11-17  9:32 Nguyễn Thái Ngọc Duy
  2011-11-17  9:32 ` [PATCH 1/8] Convert many resolve_ref() calls to read_ref*() and ref_exists() Nguyễn Thái Ngọc Duy
                   ` (8 more replies)
  0 siblings, 9 replies; 27+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2011-11-17  9:32 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Jeff King, Michael Haggerty, Jonathan Nieder,
	Ramkumar Ramachandra, Nguyễn Thái Ngọc Duy

The first part of actually nd/resolve-ref v2.

The last two patches are an attempt to catch overwriting faults in
future. git_pathname() and resolve_ref_unsafe() are guarded.

(Un)fortunately I ran "make memcheck" but found no new segfaults.
Either test coverage is insufficient, or we have done a very good
job of reviewing/testing git.git

Nguyễn Thái Ngọc Duy (8):
  Convert many resolve_ref() calls to read_ref*() and ref_exists()
  Rename resolve_ref() to resolve_ref_unsafe()
  Re-add resolve_ref() that always returns an allocated buffer
  cmd_merge: convert to single exit point
  Use resolve_ref() instead of resolve_ref_unsafe()
  Convert resolve_ref_unsafe+xstrdup to resolve_ref
  Guard memory overwriting in resolve_ref_unsafe's static buffer
  Enable GIT_DEBUG_MEMCHECK on git_pathname()

 Makefile                |    3 ++
 branch.c                |    2 +-
 builtin/branch.c        |   11 +++----
 builtin/checkout.c      |   17 ++++++------
 builtin/commit.c        |    3 +-
 builtin/fmt-merge-msg.c |    8 ++++-
 builtin/for-each-ref.c  |    7 +---
 builtin/fsck.c          |    2 +-
 builtin/merge.c         |   56 +++++++++++++++++++++++++----------------
 builtin/notes.c         |    8 ++++-
 builtin/receive-pack.c  |    5 ++-
 builtin/remote.c        |   10 +++----
 builtin/replace.c       |    4 +-
 builtin/show-branch.c   |    6 +---
 builtin/show-ref.c      |    2 +-
 builtin/symbolic-ref.c  |    2 +-
 builtin/tag.c           |    4 +-
 bundle.c                |    2 +-
 cache.h                 |   17 +++++++++---
 git-compat-util.h       |    9 ++++++
 notes-merge.c           |    2 +-
 path.c                  |   28 ++++++++++++++------
 reflog-walk.c           |   13 +++++----
 refs.c                  |   63 +++++++++++++++++++++++++++++++---------------
 remote.c                |   10 +++---
 transport.c             |    2 +-
 wrapper.c               |   21 +++++++++++++++
 wt-status.c             |    4 +--
 28 files changed, 203 insertions(+), 118 deletions(-)

-- 
1.7.4.74.g639db

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2011-12-06 14:08 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-17  9:32 [PATCH 0/8] nd/resolve-ref v2 Nguyễn Thái Ngọc Duy
2011-11-17  9:32 ` [PATCH 1/8] Convert many resolve_ref() calls to read_ref*() and ref_exists() Nguyễn Thái Ngọc Duy
2011-11-17  9:32 ` [PATCH 2/8] Rename resolve_ref() to resolve_ref_unsafe() Nguyễn Thái Ngọc Duy
2011-11-17  9:32 ` [PATCH 3/8] Re-add resolve_ref() that always returns an allocated buffer Nguyễn Thái Ngọc Duy
2011-11-17  9:32 ` [PATCH 4/8] cmd_merge: convert to single exit point Nguyễn Thái Ngọc Duy
2011-11-17 10:39   ` Ramkumar Ramachandra
2011-11-17 10:44     ` Jonathan Nieder
2011-11-17  9:32 ` [PATCH 5/8] Use resolve_ref() instead of resolve_ref_unsafe() Nguyễn Thái Ngọc Duy
2011-11-17  9:32 ` [PATCH 6/8] Convert resolve_ref_unsafe+xstrdup to resolve_ref Nguyễn Thái Ngọc Duy
2011-11-17 10:22   ` Ramkumar Ramachandra
2011-11-18  0:57     ` Nguyen Thai Ngoc Duy
2011-11-17  9:32 ` [PATCH 7/8] Guard memory overwriting in resolve_ref_unsafe's static buffer Nguyễn Thái Ngọc Duy
2011-11-17  9:32 ` [PATCH 8/8] Enable GIT_DEBUG_MEMCHECK on git_pathname() Nguyễn Thái Ngọc Duy
2011-11-17 10:35   ` Ramkumar Ramachandra
2011-11-17 13:42     ` Jeff King
2011-11-18  1:12       ` Nguyen Thai Ngoc Duy
2011-11-18  1:27         ` Jeff King
2011-11-18  1:36           ` Jonathan Nieder
2011-11-18  1:50           ` Nguyen Thai Ngoc Duy
2011-11-18  2:06             ` Jeff King
2011-11-18  1:27         ` Jonathan Nieder
2011-11-18  6:16           ` Johan Herland
2011-11-18  6:52             ` Jonathan Nieder
2011-11-18  7:35             ` Junio C Hamano
2011-11-18 12:50       ` Bernhard R. Link
2011-11-17 10:39 ` [PATCH 0/8] nd/resolve-ref v2 Jonathan Nieder
2011-12-06 14:07   ` Nguyen Thai Ngoc Duy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).