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

Re: [PATCH] sequencer: assign only free()able strings to gpg_sign

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 22, 2017, 21:36 UTC
Message-ID
<xmqqr2rmphrq.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<17655681.1077671513947507373.JavaMail.defaultUser@defaultHost>
"phillip.wood@talktalk.net" <phillip.wood@talktalk.net> writes:
Show 26 quoted lines
>>----Original Message----
>>From: johannes.schindelin@gmx.de
>>Date: 22/12/2017 11:50 
>>To: <git@vger.kernel.org>
>>Cc: "Junio C Hamano"<gitster@pobox.com>, "Phillip Wood"<phillip.
> wood@dunelm.org.uk>, "Kaartic Sivaraam"<kaartic.sivaraam@gmail.com>
>>Subj: [PATCH] sequencer: assign only free()able strings to gpg_sign
>>
>>The gpg_sign member of the replay_opts structure is of type `char *`,
>>meaning that the sequencer deems the string to which gpg_sign points 
> to
>>be under its custody, i.e. it needs to be free()d by the sequencer.
>>
>>Therefore, let's only assign malloc()ed buffers to it.
>>
>>Reported-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
>>Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
>>---
>>
>>	Phillip, if you want to squash these changes into your patches,
>>	I'd totally fine with that.
>>
>
> Hi Johannes, thanks for putting this together, the patch it fixes is 
> already in next so I think it'd be best to leave this one separate. I 
> wonder if it would be worth adding another test, see below.
Thanks, both.  Let's queue this on top as a fix-up.
Previous: Junio C Hamano
Message 5 of 5 in “sequencer: assign only free()able strings to gpg_sign”
  1. sequencer: assign only free()able strings to gpg_signJohannes Schindelin, Dec 22, 2017
  2. phillip.wood@talktalk.netDec 22, 2017
  3. Johannes SchindelinDec 22, 2017
  4. Junio C HamanoDec 22, 2017
  5. Junio C HamanoDec 22, 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.