Overflow comparing files >2GB

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Overflow comparing files >2GB

Post by fishgod »

Bytewise comparing two files larger than 2GB resuilts in an overflow-error like in the screenshot below:
xy-overflow-compare-2gb.png
xy-overflow-compare-2gb.png (10.27 KiB) Viewed 542 times

Last known working version: 23.08.0001
Not working anymore since version: 23.08.0002

This looks suspiciously like a 32bit signed integer is beeing used as a internal filepointer.
Has there been any change inbetween these minor versions not stated in the changelog?
The only thing mentioned in the changelog is the special-debug-code.
Might the filepointer be overflowing in the versions before as well just without a error popping and only comparing the first 2GB?
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 65246
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Overflow comparing files >2GB

Post by admin »

How exactly did you trigger the comparison?

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Re: Overflow comparing files >2GB

Post by fishgod »

admin wrote: 13 Apr 2023 12:59 How exactly did you trigger the comparison?
Using Ctrl+K (default mapping: Compare current file with previous file) having the two files on both panes (one per pane) switched between panes back and forth so they are current and last file.
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 65246
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Overflow comparing files >2GB

Post by admin »

Got it. Fixed in next beta. :tup: :beer:

Post Reply