git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-remote SEGV on t5505 test.
@ 2008-07-18  1:46 SungHyun Nam
  2008-07-18  4:25 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: SungHyun Nam @ 2008-07-18  1:46 UTC (permalink / raw)
  To: git

Hello,

The gdb backtrace said:
(gdb) bt
#0  0xff03455c in strlen () from /usr/lib/libc.so.1
#1  0xff087058 in _doprnt () from /usr/lib/libc.so.1
#2  0xff088c18 in printf () from /usr/lib/libc.so.1
#3  0x0007df20 in prune (argc=1556136, argv=0x139cd0) at
builtin-remote.c:590

The codes in builtin-remote.c:590,
         printf(" * [%s] %s\n", dry_run ? "would prune" : "prune",
                skip_prefix(refname, "refs/remotes/"));

And the 'skip_prefix()' returns NULL in this case.
(The old skip_prefix() never returns NULL).

It seems there is another place need to be checked:
   builtin-remote.c:464 : can pass NULL to the strdup().

Regards,
namsh

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

end of thread, other threads:[~2008-07-18  9:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18  1:46 git-remote SEGV on t5505 test SungHyun Nam
2008-07-18  4:25 ` Junio C Hamano
2008-07-18  5:44   ` SungHyun Nam
2008-07-18  6:18     ` Re* " Junio C Hamano
2008-07-18  6:26       ` Junio C Hamano
2008-07-18  9:07         ` SungHyun Nam
2008-07-18  9:13           ` Junio C Hamano

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