[Bug c/46657] Didn't check an array's boundary

schuh.robert at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 25 11:23:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46657

schuh.robert at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |INVALID
           Severity|major                       |minor

--- Comment #3 from schuh.robert at gmail dot com 2010-11-25 11:19:14 UTC ---
Hello again,

I just tested it with gcc 4.5.1 and it still compiled the program without any
hitch, but the program crashed, as expected, with error messages. The program
compiled by gcc 4.4.5 didn't crashed; just ran and exited without any error
messages. 

Perhaps my report was little premature.. I also just remembered that C doesn't
do automatic array bounds checking. Curses.. My apologies for some chaos I may
cause. 

Cheers,
Robert

P.S. Yes, I'm not a very experienced C programmer.



More information about the Gcc-bugs mailing list