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
be59e2bb
Commit
be59e2bb
authored
May 22, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of overflowing heap allocations revealed by the previous change.
parent
cc54b7d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
file.c
dlls/ntdll/file.c
+3
-2
internet.c
dlls/wininet/internet.c
+7
-0
No files found.
dlls/ntdll/file.c
View file @
be59e2bb
...
...
@@ -1449,9 +1449,10 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE hFile, PIO_STATUS_BLOCK io,
SERVER_END_REQ
;
if
(
!
io
->
u
.
Status
)
{
char
*
tmpbuf
;
ULONG
size
=
info
->
MaximumMessageSize
?
info
->
MaximumMessageSize
:
0x10000
;
char
*
tmpbuf
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
size
)
;
if
(
tmpbuf
)
if
(
size
>
0x10000
)
size
=
0x10000
;
if
(
(
tmpbuf
=
RtlAllocateHeap
(
GetProcessHeap
(),
0
,
size
))
)
{
int
fd
,
needs_close
;
if
(
!
server_get_unix_fd
(
hFile
,
FILE_READ_DATA
,
&
fd
,
&
needs_close
,
NULL
,
NULL
))
...
...
dlls/wininet/internet.c
View file @
be59e2bb
...
...
@@ -1044,6 +1044,13 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
WCHAR
*
lpwszUrl
;
TRACE
(
"(%s %u %x %p)
\n
"
,
debugstr_a
(
lpszUrl
),
dwUrlLength
,
dwFlags
,
lpUrlComponents
);
if
(
!
lpszUrl
||
!*
lpszUrl
)
{
INTERNET_SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
dwUrlLength
<=
0
)
dwUrlLength
=-
1
;
nLength
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpszUrl
,
dwUrlLength
,
NULL
,
0
);
...
...
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