In case of crash (>2GB file apparently), just return 0