Fabian Maurer : gdiplus: Prevent uninitializd memory access (Coverity).
Module: wine Branch: master Commit: 00692f5bf51dab8661ae06db90a29e312c753c2b URL: https://gitlab.winehq.org/wine/wine/-/commit/00692f5bf51dab8661ae06db90a29e3... Author: Fabian Maurer <dark.shadow4(a)web.de> Date: Sun Dec 10 19:39:03 2023 +0100 gdiplus: Prevent uninitializd memory access (Coverity). This fixes a regression by 69d815407d99 Originally this used GdipAlloc (calloc) --- dlls/gdiplus/metafile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/gdiplus/metafile.c b/dlls/gdiplus/metafile.c index eb8b4197f3f..5c50d0d1d37 100644 --- a/dlls/gdiplus/metafile.c +++ b/dlls/gdiplus/metafile.c @@ -3404,6 +3404,8 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile, { if (flags & 0x800) /* P */ { + points[0].X = 0; + points[0].Y = 0; for (i = 1; i < fill->Count; i++) { points[i].X = points[i - 1].X + fill->PointData.pointsR[i].X;
participants (1)
-
Alexandre Julliard