Hello,
I spent some time debugging a code to eventually find out that a string
IO buffer overflowed (as in WRITE(string,format)) and thing were
overwritten without an IO runtime error being generated by the compiler.
I just wanted to check what the guarantees if any we actually have on
the compiler checking for writing past the end of the buffer:
1) If IOSTAT is specified--is the compiler required to catch the error
and not overwrite anything (i.e., program is still legal)
2) If IOSTAT is not specified
Thanks,
Aleksandar
|