I'm trying to work with clamav sample code. Application compiled,prints number of signatures, and then crashed.
Using debugger, I found code with error:
On this code application crashed. Help plz to fix error.Code:if((ret = cl_scandesc(fd,&virname,&size, engine, CL_SCAN_STDOPT))== CL_VIRUS){//!!!!! printf("Virus detected: %s\n", virname); }
P.S. MSVC 2010/MSVC 2017, x86/x64 - same error.