On 04/02/2014 06:59 PM, Paul Eggert wrote: > 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.
I was thinking initially the MTIOCTOP code would be too specific to add to shred, but searching a bit more it seems generic enough to be useful. The code looks good. thanks! Pádraig.
