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
51c25426
Commit
51c25426
authored
Jul 19, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Add data and size check to parse_dxbc().
parent
53ea5de6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
utils.c
dlls/d3d10/utils.c
+12
-0
No files found.
dlls/d3d10/utils.c
View file @
51c25426
...
...
@@ -141,6 +141,12 @@ HRESULT parse_dxbc(const char *data, SIZE_T data_size,
unsigned
int
i
;
DWORD
tag
;
if
(
!
data
)
{
WARN
(
"No data supplied.
\n
"
);
return
E_FAIL
;
}
read_dword
(
&
ptr
,
&
tag
);
TRACE
(
"tag: %s.
\n
"
,
debugstr_an
((
const
char
*
)
&
tag
,
4
));
...
...
@@ -158,6 +164,12 @@ HRESULT parse_dxbc(const char *data, SIZE_T data_size,
read_dword
(
&
ptr
,
&
total_size
);
TRACE
(
"total size: %#x
\n
"
,
total_size
);
if
(
data_size
!=
total_size
)
{
WARN
(
"Wrong size supplied.
\n
"
);
return
E_FAIL
;
}
read_dword
(
&
ptr
,
&
chunk_count
);
TRACE
(
"chunk count: %#x
\n
"
,
chunk_count
);
...
...
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