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
9f2c5180
Commit
9f2c5180
authored
Sep 03, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Fix some buffer overflows in traces.
parent
75af4023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sock.c
dlls/ws2_32/tests/sock.c
+11
-11
No files found.
dlls/ws2_32/tests/sock.c
View file @
9f2c5180
...
...
@@ -2629,23 +2629,22 @@ static void get_event_details(int event, int *bit, char *name)
}
}
static
char
*
dbgstr_event_seq
(
const
LPARAM
*
seq
)
static
c
onst
c
har
*
dbgstr_event_seq
(
const
LPARAM
*
seq
)
{
static
char
message
[
1024
];
char
name
[
10
];
char
name
[
12
];
int
len
=
1
;
message
[
0
]
=
'['
;
message
[
1
]
=
0
;
while
(
*
seq
)
{
get_event_details
(
WSAGETSELECTEVENT
(
*
seq
),
NULL
,
name
);
sprintf
(
message
,
"%s%s%s(%d)"
,
message
,
message
[
1
]
==
0
?
""
:
" "
,
name
,
WSAGETSELECTERROR
(
*
seq
));
len
+=
sprintf
(
message
+
len
,
"%s(%d) "
,
name
,
WSAGETSELECTERROR
(
*
seq
));
seq
++
;
}
strcat
(
message
,
"]"
);
if
(
len
>
1
)
len
--
;
strcpy
(
message
+
len
,
"]"
);
return
message
;
}
...
...
@@ -2654,7 +2653,8 @@ static char *dbgstr_event_seq_result(SOCKET s, WSANETWORKEVENTS *netEvents)
static
char
message
[
1024
];
struct
async_message
*
curr
=
messages_received
;
int
index
,
error
,
bit
=
0
;
char
name
[
10
];
char
name
[
12
];
int
len
=
1
;
message
[
0
]
=
'['
;
message
[
1
]
=
0
;
...
...
@@ -2685,10 +2685,10 @@ static char *dbgstr_event_seq_result(SOCKET s, WSANETWORKEVENTS *netEvents)
curr
=
curr
->
next
;
}
sprintf
(
message
,
"%s%s%s(%d)"
,
message
,
message
[
1
]
==
0
?
""
:
" "
,
name
,
error
);
len
+=
sprintf
(
message
+
len
,
"%s(%d) "
,
name
,
error
);
}
strcat
(
message
,
"]"
);
if
(
len
>
1
)
len
--
;
strcpy
(
message
+
len
,
"]"
);
return
message
;
}
...
...
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