]> git.saurik.com Git - wxWidgets.git/commit - src/common/imagbmp.cpp
Make code reading BMP files more robust.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 13:15:21 +0000 (13:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 May 2013 13:15:21 +0000 (13:15 +0000)
commit0f5378d414cb68caaa535199c1af12dec1720c3d
tree41524f60f4606062b0465b64c46286525d9922f1
parentcc437b9654244bfb8b638f98252aa34145323b9c
Make code reading BMP files more robust.

Check that we did correctly read the requested amount of data instead of
blindly assuming that the needed (from the point of view of BMP format
specification) number of bytes are always available -- this doesn't work so
well with corrupted or truncated files.

Closes #12056.

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