Page 1 of 1

Integer Overrun

Posted: 26.11.2014, 11:19
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

Re: Integer Overrun

Posted: 26.11.2014, 11:34
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

Re: Integer Overrun

Posted: 27.11.2014, 08:07
by aebi
Thank You, Michal,

I will check this.

with best regards
Andreas