Skip to content

Commit 8e88a9c

Browse files
author
mrpond
committed
Use securezeromemory, correct buff size.
1 parent bfa41b2 commit 8e88a9c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<h4 align="center">A multi-purpose adblocker and skip bypass for the <strong>Windows</strong> Spotify Desktop Application.</h4>
44
<h5 align="center">Please support Spotify by purchasing premium</h5>
55
<p align="center">
6-
<strong>Current Version:</strong> 0.29 <br>
7-
<strong>Last updated:</strong> 7 November 2019 <br>
6+
<strong>Current Version:</strong> 0.30 <br>
7+
<strong>Last updated:</strong> 11 November 2019 <br>
88
<strong>Last tested version:</strong> 1.1.18.611.g9cc9bdc9
99
</p>
1010
<h4 align="center">Important Notice(s)</h4>

chrome_elf.zip

30 Bytes
Binary file not shown.

src/hosts.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,12 @@ int WINAPI winhttpreaddatahook (DWORD RetAddr,
142142
if (pdest != NULL) {
143143
return true;
144144
}
145-
ZeroMemory (lpBuffer, sizeof (lpBuffer));
145+
//std::string data ((char*)lpBuffer, dwNumberOfBytesToRead);
146+
SecureZeroMemory (lpBuffer, dwNumberOfBytesToRead);
146147
//std::ofstream logfile;
147148
//logfile.open ("hostlog.txt", std::ios::out | std::ios::app);
148-
//logfile << (LPSTR)lpBuffer << '\n';
149+
//logfile << "Byte count: " << dwNumberOfBytesToRead << '\n';
150+
//logfile << data << '\n';
149151
//logfile.close ();
150152
return true;
151153
}

0 commit comments

Comments
 (0)