WinXP problem with large files was: Re: Decrypt problem with large file

Werner Koch wk at gnupg.org
Wed Nov 28 12:10:51 CET 2007


On Wed, 28 Nov 2007 10:06, snoken at tunedal.nu said:

> Werner, do you use GetFileSize or GetFileSizeEx? There are also

Since 1.4.3 we are using GetFileSizeEx if available on the platform.  We
use it todecide whether a file is close to 4GB - if this is the case we
use OpenPGP's partial encoding format even if we know the full file
length and could go with one straigth length header.  There used to be a
bug that we were not able to detect the 4GB limit. 

To exlude potential problems with gpg's file I/O it is often better to
redirect input and output to gpg.  Actually, gpg has been written to
allow for this and to be agnostic to the file length.

Agreed, I am not doing large file test cases before a new release, so
there is a possibility that something broke. 

> WriteFileEx and any number of other -Ex file-related functions to
> handle files larger than 4 GB.

WriteFileEx is only useful if you need an I/O completion function.



Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gnupg-users mailing list