mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 14:13:57 +01:00
This is the only possible null pointer deref found by cppcheck scan on src that I think is worth making failsafe.
This commit is contained in:
@@ -454,6 +454,12 @@ bool AudioUnitEffect::ProcessStereo(int count,
|
||||
|
||||
bufferList = (AudioBufferList *)malloc(sizeof(UInt32) +
|
||||
numChannels * sizeof(AudioBuffer));
|
||||
if (!bufferList)
|
||||
{
|
||||
printf("Setting input render callback failed.\n");
|
||||
AudioUnitUninitialize(trackUnit);
|
||||
return false;
|
||||
}
|
||||
bufferList->mNumberBuffers = numChannels;
|
||||
|
||||
sampleCount originalLen = len;
|
||||
|
||||
Reference in New Issue
Block a user