This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]