Re: [Clamav-devel] scanning large zip files - file loaded entirely into (RSS) memory during extraction?

2011-12-12 Thread aCaB
On 12/12/11 09:31, Bram wrote: Questions: Is it expected that the RSS memory increases with approximately the size of the zip file before extracting it? No. The RSS memory size will increase at most by the smaller of - compressed internal file size - max-filesize (the file is skipped if the

Re: [Clamav-devel] scanning large zip files - file loaded entirely into (RSS) memory during extraction?

2011-12-12 Thread Bram
Quoting aCaB aca...@digitalfuture.it: Is this necessary? (Tools such as unzip are able to decompress the file without loading the entire file into memory). Not necessary but it makes the code much simpler in the default case scenario as, with the default settings, the allocated memory is way

Re: [Clamav-devel] scanning large zip files - file loaded entirely into (RSS) memory during extraction?

2011-12-12 Thread aCaB
On 12/12/11 15:34, Bram wrote: Is this implicit relation only for zip files or also for other compression/archive formats? (I tested bzip2 and gzip and there the RSS does not increase - or at least not that much) I'm sure it affects other formats too. But I can't tell which on the top of my