tree-diff: catch integer overflow in combine_diff_path allocation