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

Re: [PATCH] Fix git-fsck-cache segfault on invalid tag

From
FSFrank Sorenson <frank@tuxrocks.com>
Date
May 20, 2005, 14:36 UTC
Message-ID
<428DF5E0.6030106@tuxrocks.com>
In-Reply-To
<20050520085047.GA27787@pasky.ji.cz>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Petr Baudis wrote:
Show 8 quoted lines
> Dear diary, on Fri, May 20, 2005 at 09:00:41AM CEST, I got a letter
> where Frank Sorenson <frank@tuxrocks.com> told me that...
> 
>>git-fsck-cache will segfault if a tag contains a non-existent sha1.  This
>>patch fixes fsck-cache to report the invalid tag and not die.
> 
> 
> Oh. I've fixed this too but didn't even get to commit it yet. :-)

Okay. At least we fixed the same bug. It was a good exercise for me to track it down anyway :)

Show 6 quoted lines
> My error message is
> 
> 	error("%s: invalid sha1 pointer %.40s", path, hexname);
> 
> I'd prefer that (at least use the error() call). The .40 is there since
> it has a newline on its own.

Great. Your message looks fine. It looks like error() should work fine as well.

Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCjfXgaI0dwg4A47wRAikrAKCvPmZBQK34sdnnY61/meuewu2jzQCfT7Qf TDSNgfp3WBJOTvWG5uhwX4s= =CUF2 -----END PGP SIGNATURE-----

Previous: Junio C Hamano
Message 4 of 4 in “Fix git-fsck-cache segfault on invalid tag”
  1. Fix git-fsck-cache segfault on invalid tagFrank Sorenson, May 20, 2005
  2. Petr BaudisMay 20, 2005
  3. Junio C HamanoMay 20, 2005
  4. Frank SorensonMay 20, 2005

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.