Howard Chu wrote:
There should be an off64_t type instead.
But it looks to me like only the env->me_size field could ever overflow, and using size_t for that should be fine. The other uses are for the meta page, which is always either offset 0 or offset 4096 (with 4KB pagesize), and the lockfile, which is always smaller than 2GB.
Ignore that, I was looking at the 0.9 branch when I wrote that.