Author Topic: Archives unpacking?  (Read 5868 times)

0 Members and 1 Guest are viewing this topic.

AVE160

  • Guest
Archives unpacking?
« on: December 31, 2003, 11:49:18 AM »
After scanning of my disk avast! reported some errors that the temp folder did not have enough space left to unpack the archive.

Is it not possible to check archives "on the fly", so read from the archive rather than unpacking and checking the separate files?

I do not if this will affect the performance, but it will certainly be a great feature on those systems fighting disk space.

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re:Archives unpacking?
« Reply #1 on: December 31, 2003, 12:03:38 PM »
After scanning of my disk avast! reported some errors that the temp folder did not have enough space left to unpack the archive.

Is it not possible to check archives "on the fly", so read from the archive rather than unpacking and checking the separate files?

I do not if this will affect the performance, but it will certainly be a great feature on those systems fighting disk space.

I'm not sure because I'm not a programmer but I think not. Even memory (RAM) must be 'unpacked' for program files and memory blocks to be scanned. You can improve your performance excluding these files form scanning (as you are sure they are not infected) or moving the sensibility of scanning to a lower level.
The best things in life are free.

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11860
    • AVAST Software
Re:Archives unpacking?
« Reply #2 on: December 31, 2003, 02:37:32 PM »
avast! really unpacks some archives directly to memory and scans them this way - but enough free physical memory must be available.

AVE160

  • Guest
Re:Archives unpacking?
« Reply #3 on: January 01, 2004, 03:15:03 PM »
avast! really unpacks some archives directly to memory and scans them this way - but enough free physical memory must be available.

You mean unpacking to memory and then scan the files?
Not streaming from the archive?

Than that is one for the wishlist !

Offline pk

  • Avast team
  • Super Poster
  • *
  • Posts: 2078
Re:Archives unpacking?
« Reply #4 on: January 01, 2004, 11:34:52 PM »
You mean unpacking to memory and then scan the files?
Not streaming from the archive?

If you have free memory space, then we unpack the file directly to the memory and file scanning is faster. After scanning we unalloc that memory buffer (or delete a temp file).

Some archives have to be unpacked completely only to disk (ACE, CAB, ARC, ZOO) and then they're scanned.

Offline pk

  • Avast team
  • Super Poster
  • *
  • Posts: 2078
Re:Archives unpacking?
« Reply #5 on: January 01, 2004, 11:47:03 PM »
Not streaming from the archive?

Than that is one for the wishlist !

Sorry, NY Eve's party, I understood your question in a different way than you thought. Every file from the certain archive is unpacked, scanned, deleted (temp or unallocated) and then avast seeks to the next file in the archive (this works for all archives except those four ones written above). The whole file has to be unpacked and then scanned (it's not possible to scan the file during unpacking). Avast can't scan a file, e.g. If you didn't have space to unpack 300Mb setup.exe.

AVE160

  • Guest
Re:Archives unpacking?
« Reply #6 on: January 02, 2004, 10:00:51 AM »

Sorry, NY Eve's party, I understood your question in a different way than you thought. Every file from the certain archive is unpacked, scanned, deleted (temp or unallocated) and then avast seeks to the next file in the archive (this works for all archives except those four ones written above). The whole file has to be unpacked and then scanned (it's not possible to scan the file during unpacking). Avast can't scan a file, e.g. If you didn't have space to unpack 300Mb setup.exe.

Hey, keep up the good party  ;)

But back to business, does this mean you cannot scan files that will not fit into memory?

I was hoping that the stream of data coming from a file on disk or in memory could be changed into a stream of data coming from the unpacker and thus enabling scanning archives with large files on systems with small disks.

I am not talking about performance in this case, that's not the problem.



Offline pk

  • Avast team
  • Super Poster
  • *
  • Posts: 2078
Re:Archives unpacking?
« Reply #7 on: January 02, 2004, 12:23:47 PM »
No, it's not possible. Our scanner works with the whole file: it reads only some KBs from the certain file positions e.g. in 100Mb file (avast does not scan the whole file - if this is not enabled in avast options). If the file is compressed twice with UPX, for the 2nd UPX decompression you have to work with the whole static file.