[Info-vax] Text processing examples with Fortran requested
Bill Gunshannon
billg999 at cs.uofs.edu
Tue Nov 17 08:01:57 EST 2009
In article <hdtjsp$jpu$1 at lnx107.hrz.tu-darmstadt.de>,
m.kraemer at gsi.de (Michael Kraemer) writes:
> In article <4b0209e1$0$274$14726298 at news.sunsite.dk>, =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne at vajhoej.dk> writes:
>>
>> Dynamic memory allocation does not prevent buffer overflow.
>>
>> Checking available length does.
>>
>> I fact there are many more buffer overflows in C than in Fortran.
>
> Is there a metric for that or just a wild guess ?
Just a wild guess. I was fixing "buffer overflows" in Fortran (and COBOL)
30 years ago, long before I mastered C.
> Probably people do things in C that you won't even try in Fortran.
> I guess that most buffer overflows arise from programmers being
> too lazy to use dynamic allocation, using fixed length buffers.
Or, just plain not knowing what they are doing. 30 years ago there
were a lot of people earning a living writting programs that I would
never call programmers. The ratio is orders of magnitude higher today.
bill
--
Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves
billg999 at cs.scranton.edu | and a sheep voting on what's for dinner.
University of Scranton |
Scranton, Pennsylvania | #include <std.disclaimer.h>
More information about the Info-vax
mailing list