]> git.saurik.com Git - wxWidgets.git/commit
Fixed heap corruption when reading a corrupted RLE TGA image.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 25 Jan 2011 11:23:42 +0000 (11:23 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Tue, 25 Jan 2011 11:23:42 +0000 (11:23 +0000)
commitfdfedfc07701a1db96b8217321b09bd19808ac24
tree511b2c4d54c230b039f55513c40c808a4e407b2e
parente02edc0e6ece01b0301164b57c9f6b76c66fdd5b
Fixed heap corruption when reading a corrupted RLE TGA image.

There were no boundary checks in place to verify an indicated repeat of pixels would still be inside the image's data. Added these checks and a unit test making sure these kind of TGAs now fail to load.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagtga.cpp
tests/image/image.cpp