Re: [PATCH] strbuf: stop out-of-boundary warnings from Coverity
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 19, 2015, 15:27 UTC
- Message-ID
- <xmqqegl7btw1.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20150619103946.GA20493@lanh>
Duy Nguyen <pclouds@gmail.com> writes:
> Anyway it does not put strbuf_slopbuf in .rodata.
That's sad. I wa hoping that it would behave the same as this, which does give me SEGV:
#include <stdio.h>
static const char x = '\0'; static char *y = (char *)&x;
int main (void) {
*y = 1;
}