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
9aaff94f
Commit
9aaff94f
authored
Dec 30, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Check that the buffer has enough space before unmarshalling base types in generated code.
parent
2c6cbea0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
typegen.c
tools/widl/typegen.c
+6
-0
No files found.
tools/widl/typegen.c
View file @
9aaff94f
...
...
@@ -2611,6 +2611,12 @@ void print_phase_basetype(FILE *file, int indent, enum remoting_phase phase,
}
else
if
(
phase
==
PHASE_UNMARSHAL
)
{
print_file
(
file
,
indent
,
"if (_StubMsg.Buffer + sizeof("
);
write_type_decl
(
file
,
is_ptr
(
type
)
?
type
->
ref
:
type
,
NULL
);
fprintf
(
file
,
") > _StubMsg.BufferEnd)
\n
"
);
print_file
(
file
,
indent
,
"{
\n
"
);
print_file
(
file
,
indent
+
1
,
"RpcRaiseException(RPC_X_BAD_STUB_DATA);
\n
"
);
print_file
(
file
,
indent
,
"}
\n
"
);
if
(
pass
==
PASS_IN
||
pass
==
PASS_RETURN
)
print_file
(
file
,
indent
,
""
);
else
...
...
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