C vs. FORTRAN

Bob Rose rrr at naucse.UUCP
Tue Jul 12 02:28:43 AEST 1988


In article <5234 at ihlpf.ATT.COM>, nevin1 at ihlpf.ATT.COM (00704a-Liber) writes:
 > Security in FORTRAN (with respect to calling conventions)??  Look at the
 > 
 > 	subroutine foo(j)
 > 	j = 5
 > 	end
 > 	...
 > 	call foo(1)
 > 
 > This passes through the compiler with no problem.  If you look at the
 > run-time error, it's usually a memory violation and not a
 > compiler-generated error.  Some security.


Oh boy! You must be using some sort of new compiler. The old one's (not
all of course) would after running this code change _all_ integer constants
of value 1 to value 5. Try debugging the code after that occurs.
                                   -bob



More information about the Comp.lang.c mailing list