Skip to content
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

Can't allocate memory #1

Closed
DSpeichert opened this issue Jul 3, 2014 · 4 comments
Closed

Can't allocate memory #1

DSpeichert opened this issue Jul 3, 2014 · 4 comments

Comments

@DSpeichert
Copy link

avclient throws Can't allocate memory for every scanned file. It seems like there is some problem with the way wrapper runs ClamEngine.

2014/07/03 18:52:33 scanning /root/bin/sstrip
2014/07/03 18:52:33 error scanning /root/bin/sstrip: Can't allocate memory
@mirtchovski
Copy link
Owner

Hi,

Which version of clam engine are you using this with? If it's 0.98.4 then the problem is that they switched to using OpenSSL but they have not exported the function to initialize it (cl_initialize_crypto, which is located in the crypto.h file). I have fixed this privately by patching this pull request:

Cisco-Talos/clamav@9363412

and then calling cl_initialize_crypto from the init function. I'm waiting for 98.5 to roll out before I push this to the repo together with all the work supporting callbacks.

Hope this helps.

@mirtchovski
Copy link
Owner

oops, didn't mean to close it.

@DSpeichert
Copy link
Author

This is indeed the version I''m using. For now, I'm implementing the scanner purely in Go but in the future I'll revisit ClamAV binding in Go. Thanks!

@mirtchovski
Copy link
Owner

0.98.5, which is in beta, has fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants