
Secure Programming Languages?
Quote:
> Coming into this thread late from comp.lang.misc....
And even later from comp.security.unix.... :-)
Quote:
> I don't know quite what you mean by secure, but wth Java you have no
> control over memory allocation, so it's not clear that memory
allocated
> to Strings with important info (passwords) are over-written before
being
> freed. I'd appreciate work-arounds for this (the only soln I can see
is
> C code implementing some kind of secure string class). I suspect only
> Ada has built-in support for clearing freed memory.
More or less, yeah. I've seen a malloc library where the implementation
of free() did a memset(the_memory, 0, size_of_memory) before putting
the_memory back onto the free list. Adding -lwhateveritwas to the
link line transparently added support for clearing memory to the C code.
I tend to agree with Dr. Stroustrup's comment, "I assume that any
competent programmer can get around any rule not explicitly enforced
by hardware," so as far as preventing code from Doing {*filter*} Things
To Memory, IMHO the programming language is the wrong place to look.
Clearing sensistive information from deallocated memory, of course, is
another matter.
--
Targeting & Attack Radar UFOs are real.
Air Force Research Labs The Air Force
Senior Systems Administrator doesn't exist.
Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.