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
db0bd528
Commit
db0bd528
authored
May 11, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
May 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle aCount < buf_size case correctly in nsIInputStream::Read implementation.
parent
372a0f24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
navigate.c
dlls/mshtml/navigate.c
+10
-7
No files found.
dlls/mshtml/navigate.c
View file @
db0bd528
...
...
@@ -152,18 +152,21 @@ static nsresult NSAPI nsInputStream_Read(nsIInputStream *iface, char *aBuf, PRUi
PRUint32
*
_retval
)
{
nsProtocolStream
*
This
=
NSINSTREAM_THIS
(
iface
);
DWORD
read
=
aCount
;
TRACE
(
"(%p)->(%p %d %p)
\n
"
,
This
,
aBuf
,
aCount
,
_retval
);
/* Gecko always calls Read with big enough buffer */
if
(
aCount
<
This
->
buf_size
)
FIXME
(
"aCount < This->buf_size
\n
"
);
if
(
read
>
This
->
buf_size
)
read
=
This
->
buf_size
;
*
_retval
=
This
->
buf_size
;
if
(
This
->
buf_size
)
memcpy
(
aBuf
,
This
->
buf
,
This
->
buf_size
);
This
->
buf_size
=
0
;
if
(
read
)
{
memcpy
(
aBuf
,
This
->
buf
,
read
);
if
(
read
<
This
->
buf_size
)
memmove
(
This
->
buf
,
This
->
buf
+
read
,
This
->
buf_size
-
read
);
This
->
buf_size
-=
read
;
}
*
_retval
=
read
;
return
NS_OK
;
}
...
...
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