nd/resolve-ref v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 18 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | Convert many resolve_ref() calls to read_ref*() and ref_exists()builtin/ builtin/ builtin/ +9 more | +36 | 0 replies | |
| 2/8 | Rename resolve_ref() to resolve_ref_unsafe()branch.c builtin/ builtin/ +16 more | +35 | 0 replies | |
| 3/8 | Re-add resolve_ref() that always returns an allocated buffercache.h refs.c | +7 | 0 replies | |
| 4/8 | cmd_merge: convert to single exit pointbuiltin/ | +29 | 2 replies | |
| 5/8 | Use resolve_ref() instead of resolve_ref_unsafe()builtin/ builtin/ builtin/ +4 more | +27 | 0 replies | |
| 6/8 | Convert resolve_ref_unsafe+xstrdup to resolve_refbuiltin/ builtin/ builtin/ +3 more | +15 | 2 replies | |
| 7/8 | Guard memory overwriting in resolve_ref_unsafe's static bufferMakefile cache.h git-compat-util.h +2 more | +47 | 0 replies | |
| 8/8 | Enable GIT_DEBUG_MEMCHECK on git_pathname()cache.h path.c | +26 | 12 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Nguyễn Thái Ngọc Duy | Johan Herland |
|---|---|---|
| 1/8 | ||
| 2/8 | ||
| 3/8 | ||
| 4/8 | ||
| 5/8 | ||
| 6/8 | ||
| 7/8 | ||
| 8/8 | Encouraged-by | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] nd/resolve-ref v2
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(-)
Signature · 1 line
1.7.4.74.g639db