ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] Cannot set large offset in File View/Hex, with Hex input   [Bug]

By: Ben Kent       
Date: Jan 05,2021 at 09:53
In Response to: [Bug] Cannot set large offset in File View/Hex, with Hex input (Nuno)

> Hi,
> I cannot offset to a large number in Hexadecimal input.
> It seems to work fine with decimal offset.
> For example, trying to offset to
> 100000000H, it goes to:
> 010000000H
> Using decimal input, going to
> 4294967296, correctly offsets to:
> 100000000H
> There is some kind of 8byte truncation on hex input, max value seems to
> Tested with ZTreeW64 v2.4.199
> Thanks
> Nuno

Going by your description, my first thought was it's a 32bit interget overflow issue, but investigating it's not as simple as that.

2^28=010000000H works
2^31=080000000H works
7FFFFFFFH goes to 07FFFFFC0H, expected
FFFFFFFFH goes to 0FFFFFFC0H, expected
2^32=100000000H goes to 010000000H, incorrectly

At the start of a file Offset 100000000H incorrectly goes to 010000000H as you report.

But also there seems to be some relative position behaviour, I viewed a 19GB file, End, Offset 100000000H, took me to 410000000H. Also at the end of that file the last line has position 4B2D143EA, going to offset 4B2D143EAH took me to 44B2D1400H.



Messages in this Thread

95,562 Postings in 12,054 Threads, 350 registered users, 58 users online (1 registered, 57 guests)
Index | Admin contact |   Forum Time: Sep 16, 2021 - 11:20 am UTC  |  Hits:42,615,668  (10,479 Today )
RSS Feed