public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Eljay Love-Jensen <eljay@adobe.com>
To: Adrian Bentley <adruab@voria.com>, gcc-help@gcc.gnu.org
Subject: Re: Weird optimization bug...?
Date: Thu, 03 Jun 2004 11:26:00 -0000	[thread overview]
Message-ID: <6.0.3.0.2.20040603062352.02150e10@iplan-mn.corp.adobe.com> (raw)
In-Reply-To: <1086207843.11377.10.camel@localhost>

Hi Adruab,

A bug like that is usually indicative of a buffer overrun.

int rgb[3];
rgb[4] = 7;

Or of cavalier casting.
short hue;
int* p = (int*)&hue;
*p = 0;

Without seeing the code (or some sample code that replicates the bug), it 
would be difficult to guess less likely scenarios.

HTH,
--Eljay

  reply	other threads:[~2004-06-03 11:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-02 20:24 Adrian Bentley
2004-06-03 11:26 ` Eljay Love-Jensen [this message]
2004-06-03 17:24   ` Adrian Bentley
2004-06-03 18:37     ` Eljay Love-Jensen
2004-06-03 19:11       ` Adrian Bentley
2004-06-03 21:17       ` Adrian Bentley
2004-06-03 23:06       ` Adrian Bentley
2004-06-04  3:00         ` Ian Lance Taylor
2004-06-05 19:09           ` Adrian Bentley
2004-06-05 23:31             ` Ian Lance Taylor
2004-06-06  0:47             ` Ken Foskey
2004-06-05 20:21           ` Adrian Bentley
     [not found]             ` <m3aczh4m55.fsf@gossamer.airs.com>
2004-06-06 16:44               ` Adrian Bentley
2004-06-06 22:23                 ` Ian Lance Taylor
2004-06-03 19:13 lrtaylor

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=6.0.3.0.2.20040603062352.02150e10@iplan-mn.corp.adobe.com \
    --to=eljay@adobe.com \
    --cc=adruab@voria.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).