Thread (1 message) 1 message, 1 author, 2016-06-15

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;
}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help