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
> be FFFFFFFFH.
>
>
> 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.


Ben

633 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 67 users online (0 registered, 67 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 7:07 am UTC  |  Hits:62,396,204  (10,990 Today )
RSS Feed