13
0

Fix buffer-overflow in power range spectral analysis (#9560)

This commit is contained in:
Robin Gareus 2023-11-30 19:41:26 +01:00
parent b376f271c4
commit 8576db5642
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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]) {