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
612f3c14
Commit
612f3c14
authored
Mar 31, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Use INTERNET_MAX_URL_LENGTH to size buffers we intend to store a URL in.
parent
8210e1b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
http.c
dlls/wininet/http.c
+5
-5
No files found.
dlls/wininet/http.c
View file @
612f3c14
...
...
@@ -870,7 +870,7 @@ BOOL WINAPI HttpEndRequestW(HINTERNET hRequest,
if
(
HTTP_HttpQueryInfoW
(
lpwhr
,
HTTP_QUERY_FLAG_NUMBER
|
HTTP_QUERY_STATUS_CODE
,
&
dwCode
,
&
dwCodeLength
,
NULL
)
&&
(
dwCode
==
302
||
dwCode
==
301
))
{
WCHAR
szNewLocation
[
2048
];
WCHAR
szNewLocation
[
INTERNET_MAX_URL_LENGTH
];
dwBufferSize
=
sizeof
(
szNewLocation
);
if
(
HTTP_HttpQueryInfoW
(
lpwhr
,
HTTP_QUERY_LOCATION
,
szNewLocation
,
&
dwBufferSize
,
NULL
))
{
...
...
@@ -1233,7 +1233,7 @@ static BOOL HTTP_InsertAuthorization( LPWININETHTTPREQW lpwhr, struct HttpAuthIn
static
WCHAR
*
HTTP_BuildProxyRequestUrl
(
WININETHTTPREQW
*
req
)
{
WCHAR
new_location
[
2048
],
*
url
;
WCHAR
new_location
[
INTERNET_MAX_URL_LENGTH
],
*
url
;
DWORD
size
;
size
=
sizeof
(
new_location
);
...
...
@@ -2865,12 +2865,12 @@ static BOOL HTTP_HandleRedirect(LPWININETHTTPREQW lpwhr, LPCWSTR lpszUrl)
LPWININETHTTPSESSIONW
lpwhs
=
lpwhr
->
lpHttpSession
;
LPWININETAPPINFOW
hIC
=
lpwhs
->
lpAppInfo
;
BOOL
using_proxy
=
hIC
->
lpszProxy
&&
hIC
->
lpszProxy
[
0
];
WCHAR
path
[
2048
];
WCHAR
path
[
INTERNET_MAX_URL_LENGTH
];
if
(
lpszUrl
[
0
]
==
'/'
)
{
/* if it's an absolute path, keep the same session info */
lstrcpynW
(
path
,
lpszUrl
,
2048
);
lstrcpynW
(
path
,
lpszUrl
,
INTERNET_MAX_URL_LENGTH
);
}
else
{
...
...
@@ -3272,7 +3272,7 @@ BOOL WINAPI HTTP_HttpSendRequestW(LPWININETHTTPREQW lpwhr, LPCWSTR lpszHeaders,
if
(
!
(
lpwhr
->
hdr
.
dwFlags
&
INTERNET_FLAG_NO_AUTO_REDIRECT
)
&&
bSuccess
)
{
WCHAR
szNewLocation
[
2048
];
WCHAR
szNewLocation
[
INTERNET_MAX_URL_LENGTH
];
dwBufferSize
=
sizeof
(
szNewLocation
);
if
((
dwStatusCode
==
HTTP_STATUS_REDIRECT
||
dwStatusCode
==
HTTP_STATUS_MOVED
)
&&
HTTP_HttpQueryInfoW
(
lpwhr
,
HTTP_QUERY_LOCATION
,
szNewLocation
,
&
dwBufferSize
,
NULL
))
...
...
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