Re: [PATCH] strbuf: stop out-of-boundary warnings from Coverity
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jun 19, 2015, 10:51 UTC
- Message-ID
- <CACsJy8AJdjh_XjdEhhykBDMRPogMcV3LLCQpR2o1T3P1GkVKfw@mail.gmail.com>
- In-Reply-To
- <319721281.628788.1434711025325.JavaMail.zimbra@ensimag.grenoble-inp.fr>
On Fri, Jun 19, 2015 at 5:50 PM, Remi Galan Alfonso <remi.galan-alfonso@ensimag.grenoble-inp.fr> wrote:
Show 10 quoted lines
> Duy Nguyen <pclouds@gmail.com> writes:
>
>> + sb.buf[0] = 'Z';
>> + printf("%c\n", strbuf_slopbuf[0]);
>> + return 0;
>> startup_info = &git_startup_info;
>
> I might be wrong, but I definitely think that this
> printf and return 0 are some debug lines that you
> forgot to remove.Yes it's debug code. I hoped that if I made a mistake forcing the segfault, people would notice.
-- Duy