• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: call C application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: call C application


  • Subject: Re: call C application
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 28 Apr 2006 00:57:17 +0400

Nick Zitzmann wrote:

On Apr 27, 2006, at 2:45 PM, email@hidden wrote:

If you don't want to hook input/output streams (STDIN/STDOUT) then you can simple call C-library function
system();

No, don't. system() is a potential security hole because it runs a shell task. Instead, try fork() and execv(), which IIRC is what NSTask does anyway.


Right.
In any case, *ALL* arguments passed to external application must be strongly filtered.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >call C application (From: Mai Bui <email@hidden>)
 >Re: call C application (From: "email@hidden" <email@hidden>)
 >Re: call C application (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: call C application
  • Next by Date: Problems building a Universal Binary that also works on Panther
  • Previous by thread: Re: call C application
  • Next by thread: Re: call C application
  • Index(es):
    • Date
    • Thread