Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
74045dc8
Commit
74045dc8
authored
Dec 07, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Fix a potential buffer overflow in the Unix interface.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b00a509
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
unixlib.c
dlls/ws2_32/unixlib.c
+1
-1
No files found.
dlls/ws2_32/unixlib.c
View file @
74045dc8
...
@@ -783,7 +783,7 @@ static int hostent_from_unix( const struct hostent *unix_host, struct WS_hostent
...
@@ -783,7 +783,7 @@ static int hostent_from_unix( const struct hostent *unix_host, struct WS_hostent
unsigned
int
needed_size
=
sizeof
(
struct
WS_hostent
),
alias_count
=
0
,
addr_count
=
0
,
i
;
unsigned
int
needed_size
=
sizeof
(
struct
WS_hostent
),
alias_count
=
0
,
addr_count
=
0
,
i
;
char
*
p
;
char
*
p
;
needed_size
+=
strlen
(
unix_host
->
h_name
);
needed_size
+=
strlen
(
unix_host
->
h_name
)
+
1
;
for
(
alias_count
=
0
;
unix_host
->
h_aliases
[
alias_count
]
!=
NULL
;
++
alias_count
)
for
(
alias_count
=
0
;
unix_host
->
h_aliases
[
alias_count
]
!=
NULL
;
++
alias_count
)
needed_size
+=
sizeof
(
char
*
)
+
strlen
(
unix_host
->
h_aliases
[
alias_count
]
)
+
1
;
needed_size
+=
sizeof
(
char
*
)
+
strlen
(
unix_host
->
h_aliases
[
alias_count
]
)
+
1
;
...
...
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