You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running clamscan.exe (ClamAV 1.3.1/27344/Mon Jul 22 10:26:31 2024) on Windows (Windows Server 2019 Standard) with a large file (exceeding 2 GB), the following error is displayed:
`Scanning C:\Users\me\Documents\2500M.file
LibClamAV Error: cl_scandesc_callback: Can't fstat descriptor 3
C:\Users\me\Documents\2500M.file: Can't get file status ERROR
----------- SCAN SUMMARY -----------
Known viruses: 8696388
Engine version: 1.3.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Total errors: 1
Data scanned: 0.00 MB
Data read: 4192653.05 MB (ratio 0.00:1)
Time: 34.731 sec (0 m 34 s)
Start Date: 2024:07:23 11:43:11
End Date: 2024:07:23 11:43:45`
I'm aware of the maxFilesize limit of 2 GB in ClamAV (see #344), but according to the documentation I would expect that ClamAV either reports the file as uninfected or (if --alert-exceeds-max is set to true) reports a Heuristics.Limits.Exceeded.MaxFileSize FOUND error.
I tried different combinations of --max-filesize, --max-scansize and --alert-exceeds-max, but I'm always getting the same error when the file is larger than 2 GB.
When running the same commands on Linux, everything works correctly, ClamAV reports the file either as uninfected or the heuristics error.
Is there any chance to get the same behavior in Windows? I'm fine with the 2 GB limit, but as I need to parse the output of ClamAV in our software, I would prefer getting the correct error message when trying to scan large files.
The same error was reported in #479 (also on Windows)
How to reproduce the problem
The following commands all report the same error when running on a Windows system:
clamscan.exe -v -a --stdout --max-filesize=1000M --max-scansize=1000M --alert-exceeds-max=yes "C:\Users\me\Documents\2500M.file"
clamscan.exe -v -a --stdout --max-filesize=1000M --max-scansize=1000M --alert-exceeds-max=no "C:\Users\me\Documents\2500M.file"
clamscan.exe -v -a --stdout --max-filesize=0 --max-scansize=0 --alert-exceeds-max=yes "C:\Users\me\Documents\2500M.file"
The text was updated successfully, but these errors were encountered:
Describe the bug
When running clamscan.exe (ClamAV 1.3.1/27344/Mon Jul 22 10:26:31 2024) on Windows (Windows Server 2019 Standard) with a large file (exceeding 2 GB), the following error is displayed:
`Scanning C:\Users\me\Documents\2500M.file
LibClamAV Error: cl_scandesc_callback: Can't fstat descriptor 3
C:\Users\me\Documents\2500M.file: Can't get file status ERROR
----------- SCAN SUMMARY -----------
Known viruses: 8696388
Engine version: 1.3.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Total errors: 1
Data scanned: 0.00 MB
Data read: 4192653.05 MB (ratio 0.00:1)
Time: 34.731 sec (0 m 34 s)
Start Date: 2024:07:23 11:43:11
End Date: 2024:07:23 11:43:45`
I'm aware of the maxFilesize limit of 2 GB in ClamAV (see #344), but according to the documentation I would expect that ClamAV either reports the file as uninfected or (if
--alert-exceeds-max
is set to true) reports aHeuristics.Limits.Exceeded.MaxFileSize FOUND
error.I tried different combinations of --max-filesize, --max-scansize and --alert-exceeds-max, but I'm always getting the same error when the file is larger than 2 GB.
When running the same commands on Linux, everything works correctly, ClamAV reports the file either as uninfected or the heuristics error.
Is there any chance to get the same behavior in Windows? I'm fine with the 2 GB limit, but as I need to parse the output of ClamAV in our software, I would prefer getting the correct error message when trying to scan large files.
The same error was reported in #479 (also on Windows)
How to reproduce the problem
The following commands all report the same error when running on a Windows system:
clamscan.exe -v -a --stdout --max-filesize=1000M --max-scansize=1000M --alert-exceeds-max=yes "C:\Users\me\Documents\2500M.file"
clamscan.exe -v -a --stdout --max-filesize=1000M --max-scansize=1000M --alert-exceeds-max=no "C:\Users\me\Documents\2500M.file"
clamscan.exe -v -a --stdout --max-filesize=0 --max-scansize=0 --alert-exceeds-max=yes "C:\Users\me\Documents\2500M.file"
The text was updated successfully, but these errors were encountered: