Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Program won't crash when it should

Name: Anonymous 2012-01-16 3:24

(GCC C)
I ran a pointer over each member of an integer array, storing one character of input in each cell.

The program seems to consistently crash when I try to store X+3 or more characters, where X is the size of the array, but if I do not exceed X+2 it will not crash.

Why does it crashes exactly at the point it does, but not for X+1 or X+2?

Name: Anonymous 2012-01-16 21:45

>>113

In a number of other threads in which I discussed with him, he behaved rather well. So I kept a good feeling towards raising some discussion with him.

>>119

No part of it. It is a definition of a text stream. However, it is not stated that writing a partial text stream yields undefined behavior. The program could, for example, simply exit prematurely without terminating a given line. If there is somewhere in the document stating that incomplete text streams are not allowed, please share it.

>>118

I'm sorry, but honestly it's been hard to tell the Kodaks from other responses.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List