Integer Overrun

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
User avatar
aebi
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 02.05.2006, 10:26

Integer Overrun

Post by aebi »

Hello,

in the unit "ZCompatibility" there is the function "hash" - for some values this function gives an exception (integer overrun).

My system : Windows 8.1 (64 Bit), Delphi XE6, Zeos 7.1.3a, build target is 32 Bit

The problem will, for testing, occure when passing a string of 175 Characters "N" (0x4E) or 175 Characters 0x8C to the function.
This is not the original string; in fact, it was a "UPDATE"-statement with a longer part of underlines.
I can turn off Range-checking ($Q-) for my project, maybe it will be helpfull to do this just for this function ?

with best regards
Andreas
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Re: Integer Overrun

Post by miab3 »

@aebi,

In ZEOS 7.2 this function changed.
See how it works, the best in the current SVN:
http://svn.code.sf.net/p/zeoslib/code-0 ... sting-7.2/

Michal
User avatar
aebi
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 02.05.2006, 10:26

Re: Integer Overrun

Post by aebi »

Thank You, Michal,

I will check this.

with best regards
Andreas
Post Reply