mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix memory disclosure in audio send code (valgrind)
This commit is contained in:
parent
5eeae0e142
commit
56b0559d85
|
@ -657,6 +657,7 @@ void Core::sendGroupCallAudio(int groupId, ToxAv* toxav)
|
|||
alcGetIntegerv(alInDev, ALC_CAPTURE_SAMPLES, sizeof(samples), &samples);
|
||||
if(samples >= framesize)
|
||||
{
|
||||
memset(buf, 0, framesize*2); // Avoid uninitialized values (Valgrind)
|
||||
alcCaptureSamples(alInDev, buf, framesize);
|
||||
frame = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user