mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
UI/updater: Fixed a bug with deflating
The file could deflate infinitely until hard drive space ran out.
This commit is contained in:
@@ -293,10 +293,10 @@ static bool ReadHTTPZippedFile(z_stream *strm, HANDLE updateFile,
|
|||||||
string &zipBuf, const uint8_t *buffer, DWORD outSize,
|
string &zipBuf, const uint8_t *buffer, DWORD outSize,
|
||||||
int *responseCode)
|
int *responseCode)
|
||||||
{
|
{
|
||||||
do {
|
strm->avail_in = outSize;
|
||||||
strm->avail_in = outSize;
|
strm->next_in = buffer;
|
||||||
strm->next_in = buffer;
|
|
||||||
|
|
||||||
|
do {
|
||||||
strm->avail_out = (uInt)zipBuf.size();
|
strm->avail_out = (uInt)zipBuf.size();
|
||||||
strm->next_out = (Bytef *)zipBuf.data();
|
strm->next_out = (Bytef *)zipBuf.data();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user