[Full-disclosure] memory required for a PNG file
A.L.M.Buxey at lboro.ac.uk
A.L.M.Buxey at lboro.ac.uk
Fri Jul 24 06:47:19 BST 2009
Hi,
> Hi
> How do we calculate memory required for a PNG file from the dimensions
> of width and height contained in the file?
> It seems that attackers make use width and height to take control of
> clients.
just from H+W? you cant - you'd have to know oher things such as
depth, alpha layer presence, ancillary data container, gamma info.
given that most attacks using images are using some buffer overflow
in the parser you *might* be able to write your own 'PNG viewer'
that would check the the image is sane and hope you hadnt
coded any mistakes too... ;-)
alan
Full-Disclosure is hosted and sponsored by Secunia.