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
1ea7666c
Commit
1ea7666c
authored
Apr 30, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't crash in GetUrlCacheEntryInfoA/W if lpdwCacheEntryInfoBufferSize is NULL.
parent
bad1e17e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
21 deletions
+27
-21
urlcache.c
dlls/wininet/urlcache.c
+27
-21
No files found.
dlls/wininet/urlcache.c
View file @
1ea7666c
...
...
@@ -1526,18 +1526,21 @@ BOOL WINAPI GetUrlCacheEntryInfoA(
if
(
pUrlEntry
->
dwOffsetHeaderInfo
)
TRACE
(
"Header info: %s
\n
"
,
debugstr_a
((
LPSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetHeaderInfo
));
if
(
!
URLCache_CopyEntry
(
pContainer
,
pHeader
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
pUrlEntry
,
FALSE
/* ANSI */
))
{
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
return
FALSE
;
if
(
lpdwCacheEntryInfoBufferSize
)
{
if
(
!
URLCache_CopyEntry
(
pContainer
,
pHeader
,
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
pUrlEntry
,
FALSE
/* ANSI */
))
{
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
return
FALSE
;
}
TRACE
(
"Local File Name: %s
\n
"
,
debugstr_a
(
lpCacheEntryInfo
->
lpszLocalFileName
));
}
TRACE
(
"Local File Name: %s
\n
"
,
debugstr_a
(
lpCacheEntryInfo
->
lpszLocalFileName
));
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
...
...
@@ -1590,18 +1593,21 @@ BOOL WINAPI GetUrlCacheEntryInfoW(LPCWSTR lpszUrl,
TRACE
(
"Found URL: %s
\n
"
,
debugstr_a
((
LPSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetUrl
));
TRACE
(
"Header info: %s
\n
"
,
debugstr_a
((
LPSTR
)
pUrlEntry
+
pUrlEntry
->
dwOffsetHeaderInfo
));
if
(
!
URLCache_CopyEntry
(
pContainer
,
pHeader
,
(
LPINTERNET_CACHE_ENTRY_INFOA
)
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
pUrlEntry
,
TRUE
/* UNICODE */
))
if
(
lpdwCacheEntryInfoBufferSize
)
{
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
return
FALSE
;
if
(
!
URLCache_CopyEntry
(
pContainer
,
pHeader
,
(
LPINTERNET_CACHE_ENTRY_INFOA
)
lpCacheEntryInfo
,
lpdwCacheEntryInfoBufferSize
,
pUrlEntry
,
TRUE
/* UNICODE */
))
{
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
return
FALSE
;
}
TRACE
(
"Local File Name: %s
\n
"
,
debugstr_w
(
lpCacheEntryInfo
->
lpszLocalFileName
));
}
TRACE
(
"Local File Name: %s
\n
"
,
debugstr_w
(
lpCacheEntryInfo
->
lpszLocalFileName
));
URLCacheContainer_UnlockIndex
(
pContainer
,
pHeader
);
...
...
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