|
From: John S. <joh...@ja...> - 2025-09-22 18:23:30
|
I have an FXText control and I use the following to select all of
the text:
// select all
text->setSelection(0, text->getLength(), false);
it works fine but what I run "Code Analysis" in MSVS I get the
following warning:
warning C6385: Reading invalid data from 'this->text': the
readable size is '8' bytes, but '261864' bytes may be read.
I get a similar warning:
warning C6386: Buffer overrun while writing to '_x_orig[iCurve]':
the writable size is 'numDataPoints*8' bytes, but '16' bytes
might be written.
With the code below:
// copy data to local arrays
for (int iCurve = 0; iCurve < _numCurves;
iCurve++)
{
for (int i = 0; i <
_numDataPoints[iCurve]; i++)
{
_x[iCurve][i] =
_x_orig[iCurve][i] = plotDataArray[iCurve].x[i];
_y[iCurve][i] =
_y_orig[iCurve][i] = plotDataArray[iCurve].y[i];
}
}
What does this mean?
Kind regards,
js
|