git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-remote SEGV on t5505 test.

From
SNSungHyun Nam <namsh@posdata.co.kr>
Date
Jul 18, 2008, 01:46 UTC
Message-ID
<g5osl6$4g3$1@ger.gmane.org>
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

Next: Junio C Hamano
Message 1 of 7 in “git-remote SEGV on t5505 test.”
  1. SungHyun NamJul 18, 2008
  2. Junio C HamanoJul 18, 2008
  3. SungHyun NamJul 18, 2008
  4. Re* git-remote SEGV on t5505 test.Junio C Hamano, Jul 18, 2008
  5. Junio C HamanoJul 18, 2008
  6. SungHyun NamJul 18, 2008
  7. Junio C HamanoJul 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.