View Issue Details

IDProjectCategoryView StatusLast Update
0004797ardourbugspublic2020-04-19 20:16
Reporterahurst Assigned Tocth103  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0-beta3 
Target Version3.0 
Summary0004797: Out-of-bounds array access
DescriptionHigh impact static analysis bug:

An array is accessed out-of-bounds at libs/ardour/transient_detector.cc:155.

The final iteration through the loop will access beyond the end of the array.
Additional Information132 int buff_size = 1024;
133 int step_size = 64;
134
135 data = new Sample[buff_size];
136
...
152 for (int j = 0; j < buff_size;){
153
154 Sample s = abs (data[j]);
*** Overrunning dynamic array "data" of size 4096 bytes at position 4348 with index variable "j + step_size".
155 Sample s2 = abs (data[j + step_size]);
...
163 j = j + step_size;
164 }
TagsNo tags attached.

Activities

cth103

2012-04-01 14:58

administrator   ~0013055

Fixed in SVN 11772.

system

2020-04-19 20:16

developer   ~0023009

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2012-03-27 23:37 ahurst New Issue
2012-03-28 12:24 cth103 cost => 0.00
2012-03-28 12:24 cth103 Target Version => 3.0 beta4
2012-04-01 14:58 cth103 Note Added: 0013055
2012-04-01 14:58 cth103 Status new => resolved
2012-04-01 14:58 cth103 Resolution open => fixed
2012-04-01 14:58 cth103 Assigned To => cth103
2012-05-23 15:08 cth103 Target Version 3.0 beta4 => 3.0
2020-04-19 20:16 system Note Added: 0023009
2020-04-19 20:16 system Status resolved => closed