Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
00692f5b
Commit
00692f5b
authored
Dec 10, 2023
by
Fabian Maurer
Committed by
Alexandre Julliard
Dec 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Prevent uninitializd memory access (Coverity).
This fixes a regression by
69d81540
Originally this used GdipAlloc (calloc)
parent
c03c1727
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
metafile.c
dlls/gdiplus/metafile.c
+2
-0
No files found.
dlls/gdiplus/metafile.c
View file @
00692f5b
...
@@ -3404,6 +3404,8 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
...
@@ -3404,6 +3404,8 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
{
{
if
(
flags
&
0x800
)
/* P */
if
(
flags
&
0x800
)
/* P */
{
{
points
[
0
].
X
=
0
;
points
[
0
].
Y
=
0
;
for
(
i
=
1
;
i
<
fill
->
Count
;
i
++
)
for
(
i
=
1
;
i
<
fill
->
Count
;
i
++
)
{
{
points
[
i
].
X
=
points
[
i
-
1
].
X
+
fill
->
PointData
.
pointsR
[
i
].
X
;
points
[
i
].
X
=
points
[
i
-
1
].
X
+
fill
->
PointData
.
pointsR
[
i
].
X
;
...
...
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