From: Junio C Hamano <gitster@pobox•com>
To: Duy Nguyen <pclouds@gmail•com>
Cc: Jeff King <peff@peff•net>, Stefan Beller <sbeller@google•com>,
"git\@vger.kernel.org" <git@vger•kernel.org>
Subject: Re: [PATCH] strbuf: stop out-of-boundary warnings from Coverity
Date: Fri, 19 Jun 2015 08:27:42 -0700 [thread overview]
Message-ID: <xmqqegl7btw1.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20150619103946.GA20493@lanh> (Duy Nguyen's message of "Fri, 19 Jun 2015 17:39:46 +0700")
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;
}
next prev parent reply other threads:[~2015-06-19 15:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 10:16 [PATCH] strbuf: stop out-of-boundary warnings from Coverity Nguyễn Thái Ngọc Duy
2015-06-17 17:28 ` Stefan Beller
2015-06-17 17:58 ` Stefan Beller
2015-06-17 19:12 ` Jeff King
2015-06-17 20:03 ` Stefan Beller
2015-06-18 10:13 ` Duy Nguyen
2015-06-18 16:46 ` Junio C Hamano
2015-06-19 10:39 ` Duy Nguyen
2015-06-19 10:50 ` Remi Galan Alfonso
2015-06-19 10:51 ` Duy Nguyen
2015-06-19 15:27 ` Junio C Hamano [this message]
2015-06-17 19:25 ` Junio C Hamano
2015-06-17 20:05 ` Stefan Beller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqegl7btw1.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=pclouds@gmail$(echo .)com \
--cc=peff@peff$(echo .)net \
--cc=sbeller@google$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox