From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-21 14:18:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone2.usenetserver.com!usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mail From: Arthur Krewat Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Congratulations for the festive season Organization: Kilonet.net Message-ID: <3C23B4A2.54C610CA@bartek.dontspamme.net> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C1ED472.7040102@qsl.network> <9vnh67$cct$1@bob.news.rcn.net> <3C2381E4.12E053FE@bartek.dontspamme.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 i86pc) X-Accept-Language: en Date: Fri, 21 Dec 2001 22:18:03 GMT NNTP-Posting-Host: 24.186.100.134 X-Trace: news02.optonline.net 1008973083 24.186.100.134 (Fri, 21 Dec 2001 17:18:03 EST) NNTP-Posting-Date: Fri, 21 Dec 2001 17:18:03 EST Xref: archiver1.google.com comp.os.vms:56673 alt.sys.pdp10:8560 comp.sys.dec:10084 Eric Smith wrote: > > Arthur Krewat writes: > > C is not the cause of the bugs - the cause is the weenies that think they > > know how to write software after they learn C. > > That's like saying that the old table saw that's missing the finger > guard isn't responsible for cutting off the owner's fingers, it's the > owner's fault. Yes, it *is* the owners fault, but mainly for keeping > and using a broken tool that is prone to such problems Either way, they are weenies. If the moron didn't have his finger under or near the blade, he wouldn't cut off his fingers, would he? The only reason for the finger guard is to protect stupid people. While it's nice to be able to use the saw and not worry about where my fingers are, I still keep my fingers away... (ok, so the finger guard also keeps pieces of wood from flying in your face, but you should be wearing safety goggles - and if the blade splits, that little rinky-dink finger guard is going to shatter and let the blade fragment hit you anyway) > Sure, the programmer has responsibility for bugs and security holes in > his code. But when you use a stupid language that don't provide even > the most trivial of protection from stupid buffer overrun problems, I'd > have to conclude that the language is at fault as well. So the > programmer should be blamed not just for writing bad code, but also for > choosing poor tools. The only thing I can say is who the hell writes code without bounds checking built in? Yeah, read a GET command from a socket where the URL is 10K long. My buffer is only 512 chars. Do I just blindly write a loop that just goes until it hits NULL or do I stop at 511? Stop at 511. Anyone writing a loop that doesn't check for itself, well, they're putting their fingers too close to the blade and deserve to have their fingers cut off. > Some people think that it's a good thing to use compilers that generate > no run-time error checking (for array bounds and such), because it's > more efficient. When given a language or compiler that can support > run-time error checking, they may use it for debug then disable it for > production. That's like practicing the use of life preservers on solid > ground, then leaving them behind when you set out to sea, because they're > too heavy. Ok, so it's the programmer's fault he left behind the life preserver, right? Learn to swim (meaning, write code that checks it's own bounds). > So maybe the C language isn't to blame for software security problems, > just as the broken table saw isn't to blame for cutting off fingers. > But just as any sensible workman would fix or replace the broken table > saw rather than continuing to use it and risking losing fingers, > programmers should fix or replace the C language, or we'll keep having > these software security problems. In some cases I have purposely removed the finger guard and still have all 10 fingers. I'm not stupid enough to put my fingers near the blade. Again, any decent programmer should realize the compiler is not going to check for them and they have to do it themselves. > It's possible to write bad code in any programming language. But > there's no excuse for using tools that don't try to catch the most > obvious bugs, or for using languages that are so poorly designed that > such problems can't be detected by the tools. There's no excuse for people that would write a loop against a fixed size array and never check if they are out of bounds. This is like the teenager that can't accept they are at fault for their problems. Everyone else is at fault. It should have been built into the compiler. The runtime-library should check it for me ... uh, the processor should just allow me to write to location 0 because I got a NULL pointer... ad infinitum Instead, recognize that most buffer overrun exploits are from just plain stupidity and give it up already. The stuff is written in C. The programmers should realize this and program accordingly. There is no excuse for this crap. aak