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
5ba1f867
Commit
5ba1f867
authored
Jun 16, 2011
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dxof: Check returns of read_bytes (Coverity).
parent
c2748cfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
parsing.c
dlls/d3dxof/parsing.c
+6
-3
No files found.
dlls/d3dxof/parsing.c
View file @
5ba1f867
...
...
@@ -233,8 +233,10 @@ HRESULT parse_header(parse_buffer * buf, BYTE ** decomp_buffer_ptr)
buf
->
rem_bytes
-=
sizeof
(
WORD
)
*
2
;
buf
->
buffer
+=
sizeof
(
WORD
)
*
2
;
read_bytes
(
buf
,
&
decomp_size
,
sizeof
(
decomp_size
));
read_bytes
(
buf
,
&
comp_size
,
sizeof
(
comp_size
));
if
(
!
read_bytes
(
buf
,
&
decomp_size
,
sizeof
(
decomp_size
)))
return
DXFILEERR_BADFILETYPE
;
if
(
!
read_bytes
(
buf
,
&
comp_size
,
sizeof
(
comp_size
)))
return
DXFILEERR_BADFILETYPE
;
TRACE
(
"Compressed format %s detected: compressed_size = %x, decompressed_size = %x
\n
"
,
debugstr_fourcc
(
header
[
2
]),
comp_size
,
decomp_size
);
...
...
@@ -1049,7 +1051,8 @@ static void go_to_next_definition(parse_buffer * buf)
char
c
;
while
(
buf
->
rem_bytes
)
{
read_bytes
(
buf
,
&
c
,
1
);
if
(
!
read_bytes
(
buf
,
&
c
,
1
))
return
;
if
((
c
==
'#'
)
||
(
c
==
'/'
))
{
/* Handle comment (# or //) */
...
...
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