Patch level : 12.0 no-patch
Files correlati : Commento : Corretto controllo spostamento in TISAM_recordset: adesso prima di muoversi controlla che la posizione attuale non superi gli elementi totali dell'array. git-svn-id: svn://10.65.10.50/branches/R_10_00@23694 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bb7238c5e2
commit
3fecc57026
@ -1606,11 +1606,10 @@ unsigned int TISAM_recordset::columns() const
|
|||||||
bool TISAM_recordset::move_to(TRecnotype pos)
|
bool TISAM_recordset::move_to(TRecnotype pos)
|
||||||
{
|
{
|
||||||
TCursor* c = cursor();
|
TCursor* c = cursor();
|
||||||
bool ok = c != NULL && pos >= 0;
|
bool ok = c != NULL && pos >= 0 && pos < c->items();
|
||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
*c = pos;
|
*c = pos;
|
||||||
ok = pos >= 0 && pos < c->items();
|
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user