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
ec30f6de
Commit
ec30f6de
authored
Apr 03, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Apr 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/stg_bigblockfile: Check page before use (Coverity).
parent
de087179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
stg_bigblockfile.c
dlls/ole32/stg_bigblockfile.c
+5
-5
No files found.
dlls/ole32/stg_bigblockfile.c
View file @
ec30f6de
...
...
@@ -861,18 +861,18 @@ static HRESULT WINAPI ImplBIGBLOCKFILE_WriteAt(
MappedPage
*
page
=
BIGBLOCKFILE_GetMappedView
(
This
,
page_index
);
TRACE
(
"page %i, offset %u, bytes_to_page %u, bytes_left %u
\n
"
,
page
->
page_index
,
offset_in_page
,
bytes_to_page
,
bytes_left
);
page
?
page
->
page_index
:
0
,
offset_in_page
,
bytes_to_page
,
bytes_left
);
if
(
page
->
mapped_bytes
<
bytes_to_
page
)
if
(
!
page
)
{
ERR
(
"
Not enough bytes mapped to the pag
e. This should never happen
\n
"
);
ERR
(
"
Unable to get a page to writ
e. This should never happen
\n
"
);
rc
=
E_FAIL
;
break
;
}
if
(
!
page
)
if
(
page
->
mapped_bytes
<
bytes_to_
page
)
{
ERR
(
"
Unable to get a page to writ
e. This should never happen
\n
"
);
ERR
(
"
Not enough bytes mapped to the pag
e. This should never happen
\n
"
);
rc
=
E_FAIL
;
break
;
}
...
...
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