-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.6 reports "(null) found" if max recursion limit reached #1361
Comments
That's very strange! I will try to reproduce this. |
additionally:
|
same happens with the EPEL8 RPMs in epel-testing using a ZIP (since these are built without rar support)'
|
doing some further tests I noticed that it seems not "enough" to be over the limit to trigger this. It seems to me that it has to be some exact value. In my test cases it is two below the actual amount of recursion needed. It fails exactly with -max-recursion=4 and --alert-exceeds-max=no It works and returns "Heuristics.Limits.Exceeded.MaxRecursion FOUND" testing with 2,3,4,5(!) and "OK" for 6 with --alert-exceeds-max=yes So for my two testfiles it is exactly max-recursion 4 which fails while 5 still exceeds the limit according to --alert-exceeds-max=yes output. |
for completeness: same with 1.0.7 |
I'm in the process upgrading from 0.103.11 to 1.0.6. We use clamd on our MX hosts. Compared to 0.103.11 which runs stable and with expected results I noticed some "Can't allocate memory ERROR" messages in clamd log from 1.0.6.
clamav 1.0.6 is built from source using a local spec file for el8 and is running on rocky linux 8.10.
IMO these error messages are more or less false positives and are triggered if an archive reaches maxrecursion limit while unpacking. clamd and clamscan as well return an empty virusname while flagging the file as infected. Regardless of AlertExceedsMax setting.
clamscan --maxrecursion=4
returns
tmp/<testfile>!(18446744073709551615)MAIL:payment_copy.tar: (null) FOUND
clamd reports
Can't allocate memory ERROR
without debug log active.How to reproduce the problem
Using ONLY the official patterns of today and starting
clamscan -av --maxrecursion=4
shows eg. (the test file was detected and written by an other clamd instance using sanesecurity patterns and i didn't rename it!):
If I do the same with
--maxrecursion=10
clamscan reports/tmp/Sanesecurity.Foxhole.Rar_fs2720.UNOFFICIAL: OK
In clamd it gets worse since it finally reports the "Can't allocate memory ERROR" while logging some more info with debug log active:
while
AlertExceedsMax no
is set.
Attachments
Since the testfile is probably infected with something please contact me personally. I can provide a download link.
But most likely this happens with any test file which hits maxrecursion (on rar?)
The text was updated successfully, but these errors were encountered: