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

Re: [PATCH 3/6] revert: fix buffer overflow in insn sheet parser

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 20, 2011, 18:05 UTC
Message-ID
<20111020180533.GA5563@elie.hsd1.il.comcast.net>
In-Reply-To
<7vmxcva8k1.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
[...]
> Then the additional test can become part of the patch that corrects the
> parsing logic, no?

Yes, that works, too. All I was trying to say was that the description in the patch I quoted didn't make sense to me, since it included a mention of a buffer overflow without giving any explanation of what it was talking about. I don't actually care in this case whether it is fixed by mentioning which patch this is testing the fix from or by squashing the two patches (though the latter certainly seems reasonable).

Incidentally, Ram might wonder why I fuss so much about commit messages. It's actually very simple --- I think of them as part of the code. Suppose someone discovers a regression was introduced by such-and-such part of the patch 1.7.7 -> 1.7.8, but at first glance it is not clear whether that code change was supposed to have any effect on the behavior of the code at all. Such a person is likely to make mistakes in fixing it, right? So after getting the right behavior, patch authors spend a few extra minutes to make sure the code is intuitive to humans, too, and this includes making sure the rationale description is clear.

Just like the code for the computer, this is very much something that isn't always going to be right the first time and sometimes takes some debugging. So, sorry for the fuss, but I hope it helps.

Jonathan
Previous: Junio C HamanoNext: Junio C Hamano
Message 11 of 16 in “Sequencer fixups mini-series”
  1. 0/6 Sequencer fixups mini-seriesRamkumar Ramachandra, Oct 19, 2011
  2. 1/6 revert: free msg in format_todo()Ramkumar Ramachandra, Oct 19, 2011
  3. 2/6 revert: simplify getting commit subject in format_todo()Ramkumar Ramachandra, Oct 19, 2011
  4. 3/6 revert: fix buffer overflow in insn sheet parserRamkumar Ramachandra, Oct 19, 2011
  5. Junio C HamanoOct 20, 2011
  6. Jonathan NiederOct 20, 2011
  7. Ramkumar RamachandraOct 20, 2011
  8. Jonathan NiederOct 20, 2011
  9. Ramkumar RamachandraOct 20, 2011
  10. Junio C HamanoOct 20, 2011
  11. Jonathan NiederOct 20, 2011
  12. Junio C HamanoOct 20, 2011
  13. Ramkumar RamachandraOct 22, 2011
  14. 4/6 revert: make commit subjects in insn sheet optionalRamkumar Ramachandra, Oct 19, 2011
  15. 5/6 revert: allow mixed pick and revert instructionsRamkumar Ramachandra, Oct 19, 2011
  16. 6/6 revert: simplify communicating command-line argumentsRamkumar Ramachandra, Oct 19, 2011

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.