MantisBT - CLAM (C++ Library for Audio and Music) - CLAM
View Issue Details
0000037CLAMModule: Tonal Analysispublic2016-03-13 18:352016-03-13 18:35
0000037: changeChordIfSegmentTooSmall reads past end of array
This is a patch that I sent to the mailing list in July 2014.

In changeChordIfSegmentTooSmall onsets.size() is not the number of the last segment. It is the number of the last segment plus one. So if segment == onset.size()-1, we access onsets[onset.size()] a few lines later.
Caught by running chordata inside valgrind.
No tags attached.
patch ChordSegmentator.patch (792) 2016-03-13 18:35
Issue History
2016-03-13 18:35denialNew Issue
2016-03-13 18:35denialFile Added: ChordSegmentator.patch

There are no notes attached to this issue.