From 5504a89184510c94d2168a719283fff47718c5cb Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 5 Jul 2020 11:45:03 +0200 Subject: [PATCH] ScopeVis: fixed moving of iterator past the end. Fixes issue #556 --- sdrgui/dsp/scopevis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/dsp/scopevis.cpp b/sdrgui/dsp/scopevis.cpp index f2ed21902..9bfffbd71 100644 --- a/sdrgui/dsp/scopevis.cpp +++ b/sdrgui/dsp/scopevis.cpp @@ -245,7 +245,7 @@ void ScopeVis::feed(const SampleVector::const_iterator& cbegin, const SampleVect while (begin < end) { - if (begin + m_traceSize > end) // buffer smaller than trace size (end - bagin) < m_traceSize + if (end - begin < m_traceSize) // buffer smaller than trace size (end - bagin) < m_traceSize { triggerPointToEnd = -1; processTrace(begin, end, triggerPointToEnd); // use all buffer