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

Re: [PATCH] grep: do not segfault when -f is used

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 17, 2009, 07:44 UTC
Message-ID
<7vzl7qforw.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1255702405-7050-1-git-send-email-kraai@ftbfs.org>
Matt Kraai <kraai@ftbfs.org> writes:
Show 7 quoted lines
> "git grep" would segfault if its -f option was used because it would
> try to use an uninitialized strbuf, so initialize the strbuf.
>
> Thanks to Johannes Sixt <j.sixt@viscovery.net> for the help with the
> test cases.
>
> Signed-off-by: Matt Kraai <kraai@ftbfs.org>
Thanks, both of you.
Previous: Matt Kraai
Message 6 of 6 in “grep: do not segfault when -f is used”
  1. grep: do not segfault when -f is usedMatt Kraai, Oct 16, 2009
  2. Johannes SixtOct 16, 2009
  3. Matt KraaiOct 16, 2009
  4. Johannes SixtOct 16, 2009
  5. grep: do not segfault when -f is usedMatt Kraai, Oct 16, 2009
  6. Junio C HamanoOct 17, 2009

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.