Skip to content

Commit

Permalink
fix out-of-bounds crash in AudioFileProcessor
Browse files Browse the repository at this point in the history
by correctly setting m_from and m_to without them interfering with each other
  • Loading branch information
RiedleroD committed Oct 3, 2024
1 parent e0ae8a1 commit bdfecb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/AudioFileProcessor/AudioFileProcessorWaveView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,11 @@ void AudioFileProcessorWaveView::reverse()
- m_sample->endFrame()
- m_sample->startFrame()
);

const int m_from_ = m_from;

setFrom(m_sample->sampleSize() - m_to);
setTo(m_sample->sampleSize() - m_from);
setTo(m_sample->sampleSize() - m_from_);
m_reversed = ! m_reversed;
}

Expand Down

0 comments on commit bdfecb6

Please sign in to comment.