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
e4ad164f
Commit
e4ad164f
authored
Apr 03, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Set uninitialized memmory to 0xdeadbeef in cache files.
parent
edcc395d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
urlcache.c
dlls/wininet/urlcache.c
+3
-0
No files found.
dlls/wininet/urlcache.c
View file @
e4ad164f
...
...
@@ -811,6 +811,8 @@ static BOOL URLCache_FindFirstFreeEntry(URLCACHE_HEADER * pHeader, DWORD dwBlock
for
(
index
=
0
;
index
<
dwBlocksNeeded
;
index
++
)
URLCache_Allocation_BlockAllocate
(
AllocationTable
,
dwBlockNumber
+
index
);
*
ppEntry
=
(
CACHEFILE_ENTRY
*
)((
LPBYTE
)
pHeader
+
ENTRY_START_OFFSET
+
dwBlockNumber
*
BLOCKSIZE
);
for
(
index
=
0
;
index
<
dwBlocksNeeded
*
BLOCKSIZE
/
sizeof
(
DWORD
);
index
++
)
((
DWORD
*
)
*
ppEntry
)[
index
]
=
0xdeadbeef
;
(
*
ppEntry
)
->
dwBlocksUsed
=
dwBlocksNeeded
;
return
TRUE
;
}
...
...
@@ -1398,6 +1400,7 @@ static DWORD URLCache_CreateHashTable(LPURLCACHE_HEADER pHeader, HASH_CACHEFILE_
pHeader
->
dwOffsetFirstHashTable
=
dwOffset
;
(
*
ppHash
)
->
CacheFileEntry
.
dwSignature
=
HASH_SIGNATURE
;
(
*
ppHash
)
->
CacheFileEntry
.
dwBlocksUsed
=
0x20
;
(
*
ppHash
)
->
dwAddressNext
=
0
;
(
*
ppHash
)
->
dwHashTableNumber
=
pPrevHash
?
pPrevHash
->
dwHashTableNumber
+
1
:
0
;
for
(
i
=
0
;
i
<
HASHTABLE_SIZE
;
i
++
)
{
...
...
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