home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!world!ksr!jfw
- From: jfw@ksr.com (John F. Woods)
- Newsgroups: comp.lang.c
- Subject: Re: strcpy implementation question
- Message-ID: <15409@ksr.com>
- Date: 1 Sep 92 15:43:14 EDT
- References: <PINKAS.92Aug21114508@caraway.intel.com> <PINKAS.92Aug25163006@caraway.intel.com> <14213@goanna.cs.rmit.oz.au> <9224017.23144@mulga.cs.mu.OZ.AU> <1992Aug27.153441.29151@watson.ibm.com> <9224103.3422@mulga.cs.mu.OZ.AU> <15276@ksr.com>
- Sender: news@ksr.com
- Lines: 14
-
- jfw@ksr.com (John F. Woods) writes:
- >>Well, NOT fine, if you were trying to write strictly conformant ANSI
- >>C code. An ANSI C implementation is well within its rights to dump core
- >>if you reference uninitialised memory
- >Can you provide a reference for this? I thought so too, but when I looked
- >through the standard to back up MY reply, I found only the stipulation that
- >uninitialized automatics have an "indeterminate" value; I couldn't find
- >any permission for that value to cause any trouble.
-
- I have been corrected on this. The definition of "Undefined Behavior" lists
- use of indeterminate values as an example of "Undefined Behavior...for which
- the standard imposes no requirements."
-
- My favorite paragraph in the WHOLE standard, and I forgot to check it! Darn!
-