Subject: bug#17149: shred - tape data

From: Pádraig Brady <[email-masked]>
Date: Wed, 02 Apr 2014 19:24:23 +0100

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.