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
7bcbb93c
Commit
7bcbb93c
authored
Sep 26, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add trailing null byte to post data.
parent
fe252319
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
navigate.c
dlls/mshtml/navigate.c
+5
-3
No files found.
dlls/mshtml/navigate.c
View file @
7bcbb93c
...
...
@@ -1022,7 +1022,7 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade
if
(
NS_FAILED
(
nsres
))
return
E_FAIL
;
post_data
=
data
=
GlobalAlloc
(
0
,
available
);
post_data
=
data
=
GlobalAlloc
(
0
,
available
+
1
);
if
(
!
data
)
return
E_OUTOFMEMORY
;
...
...
@@ -1080,7 +1080,7 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade
}
else
if
(
post_data
!=
data
)
{
char
*
new_data
;
new_data
=
GlobalAlloc
(
0
,
data_len
);
new_data
=
GlobalAlloc
(
0
,
data_len
+
1
);
if
(
new_data
)
memcpy
(
new_data
,
post_data
,
data_len
);
GlobalFree
(
data
);
...
...
@@ -1089,6 +1089,7 @@ static HRESULT read_post_data_stream(nsIInputStream *stream, BOOL contains_heade
post_data
=
new_data
;
}
post_data
[
data_len
]
=
0
;
request_data
->
post_data
=
post_data
;
request_data
->
post_data_len
=
data_len
;
TRACE
(
"post_data = %s
\n
"
,
debugstr_an
(
request_data
->
post_data
,
request_data
->
post_data_len
));
...
...
@@ -1877,7 +1878,7 @@ HRESULT create_channelbsc(IMoniker *mon, const WCHAR *headers, BYTE *post_data,
}
if
(
post_data
)
{
ret
->
bsc
.
request_data
.
post_data
=
GlobalAlloc
(
0
,
post_data_size
);
ret
->
bsc
.
request_data
.
post_data
=
GlobalAlloc
(
0
,
post_data_size
+
1
);
if
(
!
ret
->
bsc
.
request_data
.
post_data
)
{
release_request_data
(
&
ret
->
bsc
.
request_data
);
IBindStatusCallback_Release
(
&
ret
->
bsc
.
IBindStatusCallback_iface
);
...
...
@@ -1885,6 +1886,7 @@ HRESULT create_channelbsc(IMoniker *mon, const WCHAR *headers, BYTE *post_data,
}
memcpy
(
ret
->
bsc
.
request_data
.
post_data
,
post_data
,
post_data_size
);
((
BYTE
*
)
ret
->
bsc
.
request_data
.
post_data
)[
post_data_size
]
=
0
;
ret
->
bsc
.
request_data
.
post_data_len
=
post_data_size
;
}
...
...
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