Page 1 of 1

Overflow comparing files >2GB

Posted: 13 Apr 2023 12:18
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 541 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?

Re: Overflow comparing files >2GB

Posted: 13 Apr 2023 12:59
by admin
How exactly did you trigger the comparison?

Re: Overflow comparing files >2GB

Posted: 13 Apr 2023 15:23
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.

Re: Overflow comparing files >2GB

Posted: 13 Apr 2023 17:27
by admin
Got it. Fixed in next beta. :tup: :beer: