Commit 9aaa37da authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix memory corruption issue caused by memcpy'ing of a QBitArray

BUG:329401
parent 564342c6
......@@ -62,7 +62,19 @@ KoCompositeOp::ParameterInfo& KoCompositeOp::ParameterInfo::operator=(const Para
void KoCompositeOp::ParameterInfo::copy(const ParameterInfo &rhs)
{
memcpy(this, &rhs, sizeof(ParameterInfo));
dstRowStart = rhs.dstRowStart;
dstRowStride = rhs.dstRowStride;
srcRowStart = rhs.srcRowStart;
srcRowStride = rhs.srcRowStride;
maskRowStart = rhs.maskRowStart;
maskRowStride = rhs.maskRowStride;
rows = rhs.rows;
cols = rhs.cols;
opacity = rhs.opacity;
flow = rhs.flow;
_lastOpacityData = rhs._lastOpacityData;
channelFlags = rhs.channelFlags;
lastOpacity = rhs.lastOpacity == &rhs.opacity ?
&opacity : &_lastOpacityData;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment