projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4e5b8
)
Fix #5061: Initialize output buffer transparent.
author
Armin Novak
<armin.novak@thincast.com>
Fri, 23 Nov 2018 08:16:23 +0000
(09:16 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Fri, 23 Nov 2018 09:57:17 +0000
(10:57 +0100)
libfreerdp/codec/color.c
patch
|
blob
|
history
diff --git
a/libfreerdp/codec/color.c
b/libfreerdp/codec/color.c
index
ed00646
..
477c0ef
100644
(file)
--- a/
libfreerdp/codec/color.c
+++ b/
libfreerdp/codec/color.c
@@
-179,6
+179,12
@@
BOOL freerdp_image_copy_from_pointer_data(
if (nDstStep <= 0)
nDstStep = dstBytesPerPixel * nWidth;
+ for (y = nYDst; y < nHeight; y++)
+ {
+ BYTE* pDstLine = &pDstData[y * nDstStep + nXDst * dstBytesPerPixel];
+ memset(pDstLine, 0, dstBytesPerPixel * (nWidth - nXDst));
+ }
+
vFlip = (xorBpp == 1) ? FALSE : TRUE;
andStep = (nWidth + 7) / 8;
andStep += (andStep % 2);