public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/67410] New: c/c-typeck.c references out of bounds array
@ 2015-08-31 14:29 zeccav at gmail dot com
  2015-09-02  9:32 ` [Bug c/67410] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: zeccav at gmail dot com @ 2015-08-31 14:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67410

            Bug ID: 67410
           Summary: c/c-typeck.c references out of bounds array
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com
  Target Milestone: ---

/*sanitizer message*/
/*gcc-5.2.0/gcc/c/c-typeck.c:8266:42: runtime error: load of address
0x7ffc8682b570 with insufficient space for an object of type 'long int'*/
/*gcc-5.2.0/gcc/c/c-typeck.c:8266:42: runtime error: store to address
0x7ffc8682b570 with insufficient space for an object of type 'long int'*/
/*offending source line "val[bitpos % HOST_BITS_PER_WIDE_INT]"
 * val is dimensioned [2] but bitpos % HOST_BITS_PER_WIDE_INT == 8 
 * double check with "gcc_assert(bitpos % HOST_BITS_PER_WIDE_INT<2);"
 * Target: x86_64-unknown-linux-gnu */
struct {
  __CHAR16_TYPE__ S[1];
} a[] = {   u"f"  , [0].S[0] = u'x' };


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/67410] c/c-typeck.c references out of bounds array
  2015-08-31 14:29 [Bug c/67410] New: c/c-typeck.c references out of bounds array zeccav at gmail dot com
@ 2015-09-02  9:32 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-09-02  9:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67410

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-02
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed with trunk.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-02  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31 14:29 [Bug c/67410] New: c/c-typeck.c references out of bounds array zeccav at gmail dot com
2015-09-02  9:32 ` [Bug c/67410] " mpolacek at gcc dot gnu.org

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).