Re: [PATCH] strbuf: stop out-of-boundary warnings from Coverity
From: Junio C Hamano <hidden> Date: 2016-06-15 23:05:24
Duy Nguyen [off-list ref] 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;
}