[Patch] Segfault on unaligned lseek() on /dev/sdX (was: [ITP] ddrescue 1.3)

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Fri May 18 21:16:00 GMT 2007

On Fri, May 18, 2007 at 10:23:41PM +0200, Christian Franke wrote:
>Christopher Faylor wrote:
>>On Fri, May 18, 2007 at 09:02:15PM +0200, Christian Franke wrote:
>>It seems like this could be done without the heavyweight use of malloc,
>>like use an automatic array of length 512 + 4 and calculate an aligned
>>address from that.
>Sorry, no. "unaligned seek" does not refer to memory here.

Why not just use 2048 or some larger number as the buffer size then?


More information about the Cygwin-patches mailing list