Fix addition overflow for large files

4ba2a6b62240e877ee743bb78e79ca7f5243ef5b only fixed the multiplication
overflow.