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

2017-12-22 Thread Junio C Hamano
"phillip.w...@talktalk.net" writes: >>Original Message >>From: johannes.schinde...@gmx.de >>Date: 22/12/2017 11:50 >>To: >>Cc: "Junio C Hamano", "Phillip Wood" w...@dunelm.org.uk>, "Kaartic Sivaraam" >&

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

2017-12-22 Thread Junio C Hamano
Johannes Schindelin writes: >> I thought the bug could be triggered when commit.gpgsign was true and >> it was not overriden on the commandline, is it worth adding a test for >> that? > > ... If we want to verify that the > gpg_sign is correctly allocated before it is free()d, then the test cas

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

2017-12-22 Thread Johannes Schindelin
Hi Phillip, On Fri, 22 Dec 2017, phillip.w...@talktalk.net wrote: > I thought the bug could be triggered when commit.gpgsign was true and > it was not overriden on the commandline, is it worth adding a test for > that? Everybody working with extensive test suites seems to write/blog these days

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

2017-12-22 Thread phillip.w...@talktalk.net
>Original Message >From: johannes.schinde...@gmx.de >Date: 22/12/2017 11:50 >To: >Cc: "Junio C Hamano", "Phillip Wood", "Kaartic Sivaraam" >Subj: [PATCH] sequencer: assign only free()able strings to gpg_sign > >The gpg_sig

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

2017-12-22 Thread Johannes Schindelin
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 S