e3801d6965
`totalsize` might be a big (invalid) number so instead of checking the end address we check the size of the image. Fix #4049