summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qwindowscodec.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-12-12 10:46:32 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-12-12 16:08:10 +0000
commitd1cafa3ebac00f60cab3ca2beed6ebf2e6579a94 (patch)
treeab324285e68defa3c1641337ca21dd741e01e890 /src/corelib/codecs/qwindowscodec.cpp
parentceebad9bd2c5ca35c09a17b0adc5e8ee140bdad2 (diff)
qt_imageFromWinHBITMAP(): Fix memory corruption when converting from bitmaps with low depths
Insufficient memory was allocated when asking GetDIBits() to convert to 32bit. Fix allocation size and use a QScopedArrayPointer. Fixes: QTBUG-72343 Change-Id: I45f79c913a243316e01bc6efed08e50ccc7d25f4 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/corelib/codecs/qwindowscodec.cpp')
0 files changed, 0 insertions, 0 deletions