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
f6a3a521
Commit
f6a3a521
authored
Feb 14, 2002
by
Lawson Whitney
Committed by
Alexandre Julliard
Feb 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect against NULL wsaddrlen in ws_sockaddr_alloc.
parent
f98c52b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
socket.c
dlls/winsock/socket.c
+2
-2
No files found.
dlls/winsock/socket.c
View file @
f6a3a521
...
...
@@ -838,12 +838,12 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr,
/* allocates a Unix sockaddr structure to receive the data */
inline
struct
sockaddr
*
ws_sockaddr_alloc
(
const
struct
WS_sockaddr
*
wsaddr
,
int
*
wsaddrlen
,
int
*
uaddrlen
)
{
if
(
wsaddr
==
NULL
)
return
NULL
;
if
(
*
wsaddrlen
==
0
)
*
uaddrlen
=
0
;
else
*
uaddrlen
=
max
(
sizeof
(
struct
sockaddr
),
*
wsaddrlen
);
if
(
wsaddr
==
NULL
)
return
NULL
;
return
malloc
(
*
uaddrlen
);
}
...
...
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