Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: prevent arbitrary code execution in images

by pingo (Hermit)
on Sep 16, 2004 at 10:09 UTC ( #391401=note: print w/replies, xml ) Need Help??


in reply to Re^4: prevent arbitrary code execution in images
in thread prevent arbitrary code execution in images

Out of curiosity, I tried converting two jpegs to pngs (using convert). One of them became four times bigger, the other one nine times bigger.

(BTW, I also tried converting the same jpegs to gifs, and they became five and six times larger.)
  • Comment on Re^5: prevent arbitrary code execution in images

Replies are listed 'Best First'.
Re^6: prevent arbitrary code execution in images
by paulbort (Hermit) on Sep 16, 2004 at 23:48 UTC
    You discard the conversion output. You just want to know if it worked or not. Like a regex without parens, the only thing you're looking for is metadata.

    --
    Spring: Forces, Coiled Again!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://391401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2021-01-17 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?