Skip to content

Commit

Permalink
Use securezeromemory, correct buff size.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpond committed Nov 9, 2019
1 parent bfa41b2 commit 8e88a9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<h4 align="center">A multi-purpose adblocker and skip bypass for the <strong>Windows</strong> Spotify Desktop Application.</h4>
<h5 align="center">Please support Spotify by purchasing premium</h5>
<p align="center">
<strong>Current Version:</strong> 0.29 <br>
<strong>Last updated:</strong> 7 November 2019 <br>
<strong>Current Version:</strong> 0.30 <br>
<strong>Last updated:</strong> 11 November 2019 <br>
<strong>Last tested version:</strong> 1.1.18.611.g9cc9bdc9
</p>
<h4 align="center">Important Notice(s)</h4>
Expand Down
Binary file modified chrome_elf.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions src/hosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@ int WINAPI winhttpreaddatahook (DWORD RetAddr,
if (pdest != NULL) {
return true;
}
ZeroMemory (lpBuffer, sizeof (lpBuffer));
//std::string data ((char*)lpBuffer, dwNumberOfBytesToRead);
SecureZeroMemory (lpBuffer, dwNumberOfBytesToRead);
//std::ofstream logfile;
//logfile.open ("hostlog.txt", std::ios::out | std::ios::app);
//logfile << (LPSTR)lpBuffer << '\n';
//logfile << "Byte count: " << dwNumberOfBytesToRead << '\n';
//logfile << data << '\n';
//logfile.close ();
return true;
}

0 comments on commit 8e88a9c

Please sign in to comment.