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
df7ed47b
Commit
df7ed47b
authored
Jun 19, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Jun 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane: Fix use after free in create_item (scan-build).
realloc may free lead_static.
parent
f7e76184
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ui.c
dlls/sane.ds/ui.c
+2
-2
No files found.
dlls/sane.ds/ui.c
View file @
df7ed47b
...
@@ -257,7 +257,7 @@ static int create_item(HDC hdc, const struct option_descriptor *opt,
...
@@ -257,7 +257,7 @@ static int create_item(HDC hdc, const struct option_descriptor *opt,
tpl
->
style
=
styles
;
tpl
->
style
=
styles
;
tpl
->
dwExtendedStyle
=
0
;
tpl
->
dwExtendedStyle
=
0
;
if
(
lead_static
)
if
(
lead_static
)
tpl
->
x
=
lead_static
->
x
+
lead_stati
c
->
cx
+
1
;
tpl
->
x
=
rc
->
x
+
r
c
->
cx
+
1
;
else
if
(
opt
->
type
==
TYPE_GROUP
)
else
if
(
opt
->
type
==
TYPE_GROUP
)
tpl
->
x
=
2
;
tpl
->
x
=
2
;
else
else
...
@@ -274,7 +274,7 @@ static int create_item(HDC hdc, const struct option_descriptor *opt,
...
@@ -274,7 +274,7 @@ static int create_item(HDC hdc, const struct option_descriptor *opt,
else
else
{
{
if
(
lead_static
)
if
(
lead_static
)
tpl
->
cy
=
lead_stati
c
->
cy
;
tpl
->
cy
=
r
c
->
cy
;
else
else
tpl
->
cy
=
15
;
tpl
->
cy
=
15
;
...
...
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