Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Calligra
Commits
9aaa37da
Commit
9aaa37da
authored
Dec 30, 2013
by
Dmitry Kazakov
Browse files
Fix memory corruption issue caused by memcpy'ing of a QBitArray
BUG:329401
parent
564342c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/pigment/KoCompositeOp.cpp
View file @
9aaa37da
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment