Fix int overflow for file more than 2GB