Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File/Folder icons - normal and custom



On 2007-06-12, at 06:40:45, David Duncan wrote:

1. Do a system( "sips -i '/path/to/image.tif'" );

Just as an FYI, using system() for a task such as this can be exploited to run arbitrary code by an attacker than knows what they are doing. Instead, you should use fork()/exec() to do this.

Thanks David,

Maybe I should ask what else in the same area? I also use 'popen', NSTask, and quite a few of the OSA technologies -- of this last which can serve as an (incoming) Mail rule in 5 of the scripting languages built-in to OS X.

I'm hard pressed to define the line between user convenience (for scriptors in my case) and security.


Philip Aker email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >RE: File/Folder icons - normal and custom (From: "Yaron Tadmor" <email@hidden>)
 >Re: File/Folder icons - normal and custom (From: Philip Aker <email@hidden>)
 >Re: File/Folder icons - normal and custom (From: David Duncan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.