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
aa336618
Commit
aa336618
authored
Sep 11, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a check for a condition where a stream has an invalid size
and so there aren't enough blocks in the chain to write data into.
parent
106156cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
storage32.c
dlls/ole32/storage32.c
+8
-0
No files found.
dlls/ole32/storage32.c
View file @
aa336618
...
...
@@ -4656,6 +4656,14 @@ HRESULT BlockChainStream_WriteAt(BlockChainStream* This,
This
->
lastBlockNoInSequenceIndex
=
blockIndex
;
/* BlockChainStream_SetSize should have already been called to ensure we have
* enough blocks in the chain to write into */
if
(
blockIndex
==
BLOCK_END_OF_CHAIN
)
{
ERR
(
"not enough blocks in chain to write data
\n
"
);
return
STG_E_DOCFILECORRUPT
;
}
/*
* Here, I'm casting away the constness on the buffer variable
* This is OK since we don't intend to modify that buffer.
...
...
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