git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fix pull/merge --verify-signature on an unborn branch
@ 2018-11-06  7:49 Jeff King
  2018-11-06  7:50 ` [PATCH 1/3] merge: extract verify_merge_signature() helper Jeff King
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jeff King @ 2018-11-06  7:49 UTC (permalink / raw)
  To: git; +Cc: Felix Eckhofer, Junio C Hamano

This bug was reported to the private security list, but I don't think
it's easily exploitable, since merging or pulling into an unborn branch
is pretty uncommon.

The root of the issue in both commands is just that we handle unborn
branches in a special code path that never learned about
--verify-signatures.

  [1/3]: merge: extract verify_merge_signature() helper
  [2/3]: merge: handle --verify-signatures for unborn branch
  [3/3]: pull: handle --verify-signatures for unborn branch

 builtin/merge.c                    | 30 +++++-------------------------
 builtin/pull.c                     | 11 +++++++++++
 commit.c                           | 26 ++++++++++++++++++++++++++
 commit.h                           |  7 +++++++
 t/t5573-pull-verify-signatures.sh  |  7 +++++++
 t/t7612-merge-verify-signatures.sh |  7 +++++++
 6 files changed, 63 insertions(+), 25 deletions(-)

-Peff

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

end of thread, other threads:[~2018-11-06  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-06  7:49 [PATCH 0/3] fix pull/merge --verify-signature on an unborn branch Jeff King
2018-11-06  7:50 ` [PATCH 1/3] merge: extract verify_merge_signature() helper Jeff King
2018-11-06  7:51 ` [PATCH 2/3] merge: handle --verify-signatures for unborn branch Jeff King
2018-11-06  7:52 ` [PATCH 3/3] pull: " Jeff King

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).