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
3d531f1b
Commit
3d531f1b
authored
Mar 07, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fixed length check in dump_inline_unicode_string.
parent
576e3b70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trace.c
server/trace.c
+2
-2
No files found.
server/trace.c
View file @
3d531f1b
...
@@ -299,12 +299,12 @@ static void dump_varargs_debug_event( size_t size )
...
@@ -299,12 +299,12 @@ static void dump_varargs_debug_event( size_t size )
/* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
/* dump a unicode string contained in a buffer; helper for dump_varargs_startup_info */
static
void
dump_inline_unicode_string
(
const
UNICODE_STRING
*
str
,
const
void
*
data
,
size_t
size
)
static
void
dump_inline_unicode_string
(
const
UNICODE_STRING
*
str
,
const
void
*
data
,
size_t
size
)
{
{
size_t
length
=
str
->
Length
/
sizeof
(
WCHAR
)
;
size_t
length
=
str
->
Length
;
size_t
offset
=
(
size_t
)
str
->
Buffer
;
size_t
offset
=
(
size_t
)
str
->
Buffer
;
if
(
offset
>=
size
)
return
;
if
(
offset
>=
size
)
return
;
if
(
offset
+
length
>
size
)
length
=
size
-
offset
;
if
(
offset
+
length
>
size
)
length
=
size
-
offset
;
dump_strW
(
(
const
WCHAR
*
)
data
+
offset
/
sizeof
(
WCHAR
),
length
,
stderr
,
"
\"\"
"
);
dump_strW
(
(
const
WCHAR
*
)
data
+
offset
/
sizeof
(
WCHAR
),
length
/
sizeof
(
WCHAR
)
,
stderr
,
"
\"\"
"
);
}
}
static
void
dump_varargs_startup_info
(
size_t
size
)
static
void
dump_varargs_startup_info
(
size_t
size
)
...
...
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