mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-20 05:07:53 +01:00
null pointer checks on all uses of WaveTrackCache::Get
This commit is contained in:
@@ -854,12 +854,16 @@ bool SpecCache::CalculateOneSpectrum
|
||||
myLen)
|
||||
);
|
||||
|
||||
if (copy)
|
||||
memcpy(adj, useBuffer, myLen * sizeof(float));
|
||||
if (copy) {
|
||||
if (useBuffer)
|
||||
memcpy(adj, useBuffer, myLen * sizeof(float));
|
||||
else
|
||||
memset(adj, 0, myLen * sizeof(float));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (copy)
|
||||
if (copy || !useBuffer)
|
||||
useBuffer = scratch;
|
||||
|
||||
if (autocorrelation) {
|
||||
|
||||
Reference in New Issue
Block a user