home *** CD-ROM | disk | FTP | other *** search
- Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!fl0p+
- Newsgroups: comp.os.linux
- Message-ID: <Af2Lgoa00VpdEMjkgq@andrew.cmu.edu>
- Date: Tue, 17 Nov 1992 18:07:32 -0500
- From: Frank T Lofaro <fl0p+@andrew.cmu.edu>
- Subject: Read-only text segments (was minicom breaks under 0.98pl5)
- Lines: 28
-
- From comp.os.linux: 17-Nov-92 Re: minicom broken under .98-5 Brent
- Benson@ssd.csd.harris.com (712)
-
- >You don't have to go to such lengths to do this sort of thing. Simply
- >use an initialized array of characters rather than a pointer to a
- >string constant:
-
- >char gname[] = "stuff";
-
- Okay, an initialized array will allow you to change the contents, but
- want if the program also wants to then change what gname points too? It
- might not work. (Yeah I know it is extremely bad code (char
- *gname="stuff") originally that resulted in an attempt to change a
- strings literal pointed to by a pointer when the pointer was later
- dereferenced. Nevertheless, it seems that stuff later on might depend on
- where gname points being changable.)
-
- P.S. I totally agree with Linus' tightening of the restrictions
- (stopping NULL pointer dereferences, and now making the text-segment
- read-only.). It might have been necessary for rapid development to allow
- somewhat messy stuff to work for the time being, but with 1.0 in the not
- too distant future, ensuring quality programming that doesn't do
- anything really wrong is a good idea. That way we can be better assured
- of a more stable, reliable, well built OS/software enviornment. If
- anything breaks, it was kind of broken to begin with, and now it will
- get fixed, like it should. Anyway thanks for an excellent OS, and I hope
- that the little fixing of stuff up doesn't make the road too bumpy :)
-
-