Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
How... would that even work?

It's not that difficult at a theoretic level to make a JPEG (or similar) that can be malicious. Apple have patched the various image decoders in Mac OSX more than once to prevent this sort of attack. Basically when the components that interpret and render images load an image they allocate buffers to store data in. A malicious image will trick the code into loading too much data into the buffer (this is a code error in the decoder). The extra image "data" will now end up in executable space. So what was image data is no code and can be run.

Still the chances are that this could never be a virus, it'd not be able to self replicate, rather a method for non-replicating malicious code to enter the system. Fortunately OSX (and later version of Windows) implement a number of security technologies to lessen the chances of this sort of attack, the foremost being address space randomisation.
 
Doubt it. Why do you ask?

Was just curious. I am still new to mac and the feature to be able to drag and put in iphoto is a cool thing. Just wasn't sure if something could be embedded in a jpeg and than hurt your cpu when saving it in iphoto.
 
For now...You really only need to worry about that sort of thing on Windows.

I believe in the future the virus writers will start to attack OS X, but I don't know how successful (if at all) they'll be.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.