Fix buffer-overflow in power range spectral analysis (#9560)
This commit is contained in:
parent
b376f271c4
commit
8576db5642
@ -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…
Reference in New Issue
Block a user