[Info-vax] Whither VMS?

Bill Gunshannon billg999 at cs.uofs.edu
Sun Oct 4 07:13:27 EDT 2009


In article <7imi9jF31nq9iU6 at mid.individual.net>,
	Bob Eager <rde42 at spamcop.net> writes:
> On Fri, 02 Oct 2009 15:18:30 +0200, Jordi Guillaumes i Pons wrote:
> 
>> En/na Michael Kraemer ha escrit:
>>> 
>>> The str*() functions exist for convenience. If one has problems of that
>>> kind, I'd indeed store data in a dedicated struct (ptr,len).
>>>> One result of null termination is the easy buffer overflow of many
>>>> programs today
>>> 
>> Programmers are, some times, lazy. Specially when they work under
>> unrealistic schedules and not enough resources. You can find a lot of
>> things like this in production:
>> 
>> void someFunction(char *someString) {
>> 	char aBuffer[1024];
>> 
>> 	.
>> 	.
>> 	.
>> 	strcpy(aBuffer, someString);
>> 	doSomething(aBuffer);
>> 	.
>> 	.
>> 	.
>> }
>> 
>> The problem is that in C you don't have tools (AFAIK)
> 
> Google "Purify memory checker"

Or you can go back to the PDP-11 in the early 70's (and other systems,
I seem to recall but the PDP was where my experience was) and a product
called Safe-C.

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