Arduino Mega2560 as ISP to program another Arduino Mega2560

the lenght is not a problem, because in the board.txt you have the maximum sketch value, so if you do not change the original boards.txt you do not have problem.