Great Circle Associates Firewalls
(April 1994)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: system()
From: Dorian Deane <dorian @ cobalt . house . gov>
Date: Mon, 4 Apr 94 15:18:14 -0700
To: firewalls @ GreatCircle . COM, francis @ avalle . insoft . com

>
>
> >Since this sort of BASIC-grade programming is such a perennial problem, perhaps
> >someone should write a safe_system() to replace such calls with, that does
> >more arg checking, flushes dangerous things, warns of impending lossage, etc?
> >One or more instances of this should have been written ten years ago.
>
> It'd be AI-complete.  How do you know what's dangerous & what's not?
> I'd rather not have people thinking safe_system() is safe when it
> really isn't.
>

How about doing for system() what 386BSD does for gets()?

  cobalt 67 % ./a.out
  warning: this program uses gets(), which is unsafe.
  ^C
  cobalt 68%

Some people might find a 386BSD-type solution a bit draconian, especially 
in a production environment, but it really gets the message across.

dorian



Follow-Ups:
  • Re: system()
    From: Steve Simmons <scs @ lokkur . dexter . mi . us>
Indexed By Date Previous: "One time passwords"
From: Luther Garcia <luth @ sprintlink . net>
Next: Re: system()
From: Steve Simmons <scs @ lokkur . dexter . mi . us>
Indexed By Thread Previous: system()
From: francis @ avalle . insoft . com (John [Francis] Stracke)
Next: Re: system()
From: Steve Simmons <scs @ lokkur . dexter . mi . us>

Google
 
Search Internet Search www.greatcircle.com