Git development
 help / color / mirror / Atom feed
* [PATCH] Fix segfault in git-shell when given no argument.
@ 2005-11-25 11:49 Tommi Virtanen
  0 siblings, 0 replies; only message in thread
From: Tommi Virtanen @ 2005-11-25 11:49 UTC (permalink / raw)
  To: git; +Cc: Tommi Virtanen

The bug is trivially reproducible with "git-shell -c git-receive-pack"

Signed-off-by: Tommi Virtanen <tv@inoi.fi>

---

 shell.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

applies-to: 2ada0cb8fce070b6b2c56fa689791230636f1857
4fbfea212a9afcd123a213e20388b1fa775fc7fe
diff --git a/shell.c b/shell.c
index 2c4789e..7fab432 100644
--- a/shell.c
+++ b/shell.c
@@ -5,6 +5,8 @@ static int do_generic_cmd(const char *me
 {
 	const char *my_argv[4];
 
+	if (!arg)
+		die("missing argument");
 	arg = sq_dequote(arg);
 	if (!arg)
 		die("bad argument");
---
0.99.9.GIT

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2005-11-25 11:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-25 11:49 [PATCH] Fix segfault in git-shell when given no argument Tommi Virtanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox