mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
Fix buffer-overflow in power range spectral analysis (#9560)
This commit is contained in:
parent
b376f271c4
commit
8576db5642
1 changed files with 1 additions and 1 deletions
|
|
@ -577,7 +577,7 @@ FFTGraph::redraw ()
|
||||||
|
|
||||||
mpp = maxf;
|
mpp = maxf;
|
||||||
// Draw back to the start using the minimum value
|
// Draw back to the start using the minimum value
|
||||||
for (int x = res->length () - 1; x >= 0; --x) {
|
for (int x = res->length () - 2; x >= 0; --x) {
|
||||||
mpp = std::min (mpp, res->minAt (x, _show_proportional));
|
mpp = std::min (mpp, res->minAt (x, _show_proportional));
|
||||||
|
|
||||||
if (_logScale[x] == _logScale[x + 1]) {
|
if (_logScale[x] == _logScale[x + 1]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue