git name-rev writes beyond the end of malloc() with large generations