aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-05-11 15:48:11 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-05-12 09:49:52 +0200
commitcc011c8980cc4ce02e3d9cceb74ee028c204214e (patch)
tree55f04e1d398ce5d1c6ba5afad0adb50f9e836f1b /tools
parent8760ee9ad9ab93aaa1a5a519cbfbd2d5e04fbac5 (diff)
Fix crashes when using the QImage(uchar *) data constructors
The constructors expect a range of memory that remains valid through the lifetime of the image and may also modify it. Crashes occurred since apparently the Py_Buffer was released before it. To fix this, add a new buffer helper, copyData() that makes a copy of the data and pass that along with std::free() as cleanup function. Pick-to: 6.1 5.15 Fixes: PYSIDE-1563 Change-Id: Idb09eadea658f02968f75c6bdfc6cc3f467111d5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions