ozf2 2GB bug

Started by Wolfgang16, November 18, 2017, 09:52:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wolfgang16

Hello,



I tried some ozf2 maps > 2 GB with oruxmaps. This always results in an error "offset < 0: -123456789"

where the number is almost exactly equal to filesize - 2^32. This looks like a wrap around with a signed integer.



Wolfgang

orux

#1
Quote from: "Wolfgang16"Hello,



I tried some ozf2 maps > 2 GB with oruxmaps. This always results in an error "offset < 0: -123456789"

where the number is almost exactly equal to filesize - 2^32. This looks like a wrap around with a signed integer.



Wolfgang


Hello!



the ozf2 format version that I know stores the pointers to the zoom levels in 4 bytes. So, it doesn't allow > 2gb files.



If you can share one of your maps with me, I can check it.





orux

Wolfgang16

#2
I can give you a download link, but since the map might be copyright protected I wouldn't like to publish it here. Can I send it via email or any other option?



Wolfgang

orux

#3
Yes, there is a bug with maps larger than 2gb.



I found that the limit is 4gb. The offset are stored in unsigned integers.



orux

Wolfgang16

#4
it works with version 7.2.0

I have tested ozf2 files up to 3.86GiB

Thanks