On 04/02/2014 09:31 AM, Paul Eggert wrote: > Does the attached patch work for you? Oops. that had an incorrect integer overflow check. Attached is an improved version, which uses INT_ADD_OVERFLOW instead of attempting to do it by hand.