public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: d.petropoulos@encode-sec.com To: gcc-gnats@gcc.gnu.org Subject: c/9025: GNU C compiler does not honour 'const' type qualifier Date: Fri, 20 Dec 2002 07:06:00 -0000 [thread overview] Message-ID: <20021220150121.15800.qmail@sources.redhat.com> (raw) >Number: 9025 >Category: c >Synopsis: GNU C compiler does not honour 'const' type qualifier >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Fri Dec 20 07:06:30 PST 2002 >Closed-Date: >Last-Modified: >Originator: Dimitrios Petropoulos >Release: multiple >Organization: >Environment: * Solaris 8, sparc, GCC 3.1 * AIX 4.3, PowerPC, GCC 2.9-aix51-020209 * Linux, x86, GCC 2.96 >Description: The gcc compiler (multiple versions and platforms) does not honour the 'const' type qualifier (it allows the program to modify a variable declared as const). Depending on the scope of the declaration the effect of this can range from overwriting the variable which has been declared as constant to segmentation fault of the program (with associated overwriting of registers). The attached file causes a segmentation fault and overwrites the instruction pointer on Linux or the r0 register on PowerPC. >How-To-Repeat: Just compile (no special flags/directive needed) >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-12-20 15:06 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-12-20 7:06 d.petropoulos [this message] 2002-12-20 7:10 ehrhardt 2002-12-20 7:27 Dimitrios Petropoulos 2002-12-20 7:43 ehrhardt 2002-12-20 8:03 ehrhardt 2002-12-20 12:26 Joseph S. Myers 2002-12-21 8:45 ehrhardt
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=20021220150121.15800.qmail@sources.redhat.com \ --to=d.petropoulos@encode-sec.com \ --cc=gcc-gnats@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: linkBe 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).