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

Re: [PATCH] name-hash: fix buffer overrun

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 1, 2017, 18:16 UTC
Message-ID
<xmqqk274uh6w.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.DEB.2.20.1704011411460.3742@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 8 quoted lines
> On Fri, 31 Mar 2017, Junio C Hamano wrote:
>
>> Junio C Hamano <gitster@pobox.com> writes:
>> 
>> > Ah, of course. Avoid GNUism to spell HT as "\t" in a sed script.
>
> Sorry about that, I suggested this snippet to Kevin, it is my fault for
> not remembering BSD sed's idiosynchracies.

Heh, don't fret about that. We all make mistakes and that is why we review on the list so that patches get exposure to more sets of eyes. We may be interested to learn from our common mistakes, but for that purpose, "whose fault is it?" is far less interesting than "how it came about?", i.e. what made that mistake common and if/how we can help people avoid it (removing cuttable-and-pastable bad examples is one way to do so).

Thanks.
Previous: Johannes SchindelinNext: Junio C Hamano
Message 8 of 11 in “name-hash: fix buffer overrun”
  1. name-hash: fix buffer overrungit@jeffhostetler.com, Mar 31, 2017
  2. name-hash: fix buffer overrungit@jeffhostetler.com, Mar 31, 2017
  3. Junio C HamanoMar 31, 2017
  4. Junio C HamanoMar 31, 2017
  5. Junio C HamanoMar 31, 2017
  6. Junio C HamanoApr 1, 2017
  7. Johannes SchindelinApr 1, 2017
  8. Junio C HamanoApr 1, 2017
  9. contrib/git-resurrect.sh: do not write \t for HT in sed scriptsJunio C Hamano, Apr 1, 2017
  10. Jakub NarębskiApr 2, 2017
  11. Junio C HamanoApr 2, 2017

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.