nautilus-clamscan can't scan files larger than 2GB

Bug #665761 reported by Pedro Dias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus-clamscan
New
Undecided
Unassigned

Bug Description

When several files are selected for a scan in nautilus, an one of them is larger than 2GB, nautilus-clamscan never finishes the scan and no error is displayed. Only the files processed so far are displayed in the details section.

OS: Ubuntu 10.04.1 LTS

Package versions: linux-generic-pae (2.6.32.25.27), nautilus (1:2.30.1-0ubuntu1.1), nautilus-clamscan (0.2.2-2ubuntu1), clamav (0.96.3+dfsg-2ubuntu1.0.10.04.1)

Revision history for this message
Pedro Dias (pedro-dias-77) wrote :
Revision history for this message
Pedro Dias (pedro-dias-77) wrote :

It is probably a good idea to attach the complete python script, in case the patch is wrong.

Revision history for this message
Pedro Dias (pedro-dias-77) wrote :

Just to make it clear, the patch only handles the exception raised when py_clamav.scanfile() scans a file larger than 2GB, allowing nautilus-clamscan to complete by scanning all the files. It doesn't solve the problem with clamav not being able to scan files larger than 2GB. By executing 'clamscan -r' on a directory with files larger than 2GB, it avoids scanning these files. By forcing it with 'clamscan <filename>' it blows up with the error:

WARNING: Can't access file xpto.avi
xpto.avi: Value too large for defined data type

----------- SCAN SUMMARY -----------
Known viruses: 1103509
Engine version: 0.96.3
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 11.486 sec (0 m 11 s)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.