0
0

I believe I found a line of code in the PlotOscilliscope() function from the dsppluginviewer example which will actually read 1 element past the end of an array.

In the main.cpp on line 310, the following code:

[code:ya6cbs7e]y2 = (int)((src[x+(int)step] + 1.0f) / 2.0f * (float)GRAPHICWINDOW_HEIGHT);[/code:ya6cbs7e]

This code will fix the error:

[code:ya6cbs7e]if (x+(int)step < GRAPHICWINDOW_WIDTH)
y2 = (int)((src[x+(int)step] + 1.0f) / 2.0f * (float)GRAPHICWINDOW_HEIGHT;
else
y2 = y;[/code:ya6cbs7e]

Cliff :)

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.