mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Fix heap corruption. Closes #2342.
Manual backporting of commit b45eb28099 (master).
This commit is contained in:
@@ -1419,7 +1419,7 @@ private:
|
||||
delete[] lpValueName;
|
||||
|
||||
if (res == ERROR_SUCCESS) {
|
||||
lpData[cBuffer] = 0;
|
||||
lpData[cBuffer - 1] = 0;
|
||||
result = QString::fromWCharArray(lpData);
|
||||
}
|
||||
delete[] lpData;
|
||||
|
||||
Reference in New Issue
Block a user