Integer overflow bug in wwdbigrd.pas in Delphi 11.3/Infopower 22.1.0.5
Hello!
I'm seeing an integer overflow error in Delphi 11.3/Infopower 22.1.0.5 in procedure TwwCustomDBGrid.UpdateScrollBar (unit: wwdbigrd.pas). Error not seen in any prior versions.
It seems to occurs when the table recordcount is negative. I'm using NexusDB as my database engine, which may account for why others have not yet seen this.
I fixed the issue by changing line 4997 as follows:
//nm := integer(DWORD(RecordCount) + SINew.nPage - 1); //Old
nm := RecordCount + SINew.nPage - 1; //New
Thought you would want to know. Feedback welcome!
Please sign in to leave a comment.
Comments
1 comment