mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a potential out-of-bounds array access in the CoreAudio internals
This commit is contained in:
parent
0b71fdb9a8
commit
9b4ba780ed
1 changed files with 4 additions and 1 deletions
|
|
@ -464,6 +464,9 @@ public:
|
|||
inputChannelInfo.swapWith (newInChans);
|
||||
outputChannelInfo.swapWith (newOutChans);
|
||||
|
||||
numInputChans = inputChannelInfo.size();
|
||||
numOutputChans = outputChannelInfo.size();
|
||||
|
||||
allocateTempBuffers();
|
||||
}
|
||||
|
||||
|
|
@ -778,7 +781,7 @@ public:
|
|||
|
||||
for (int i = numOutputChans; --i >= 0;)
|
||||
{
|
||||
auto& info = outputChannelInfo.getReference(i);
|
||||
auto& info = outputChannelInfo.getReference (i);
|
||||
auto src = tempOutputBuffers[i];
|
||||
auto dest = ((float*) outOutputData->mBuffers[info.streamNum].mData) + info.dataOffsetSamples;
|
||||
auto stride = info.dataStrideSamples;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue