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 13:29:21 PST Sender: eric@ruckus.brouhaha.com From: Eric Smith Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: Congratulations for the festive season 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> Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy. Date: 21 Dec 2001 13:29:19 -0800 Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: ruckus.brouhaha.com X-Trace: 21 Dec 2001 13:36:47 -0800, ruckus.brouhaha.com Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!news.spies.com!ruckus.brouhaha.com Xref: archiver1.google.com comp.os.vms:56660 alt.sys.pdp10:8555 comp.sys.dec:10074 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 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. 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. 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. 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 are plenty of programming languages out there that don't have these problems. Some of them are just as efficient as C for all practical intents and purposes. Eric