Re: Question have an about LibClamAV.dll
Brandon Perry <[email protected]>
| Newsgroups | gmane.comp.security.virus.clamav.devel |
|---|---|
| Message-ID | <[email protected]> |
> On Apr 10, 2017, at 11:58 AM, Shanmugam, Suresh (Conduent) <[email protected]> wrote: > > Hi Brandon Perry, > > You are correct Perry. I am implementing the LibClamAV Library into C# application. So I need to get the File descriptor from the Stream and need to assign the value to "cl_scandesc" Native method. Am I right?. Yes, I believe that’s correct. > > > Regards, > Suresh Shanmugam. > > -----Original Message----- > From: clamav-devel [mailto:[email protected]] On Behalf Of Brandon Perry > Sent: Monday, April 10, 2017 9:12 PM > To: ClamAV Development <[email protected]> > Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll > > >> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) <[email protected]> wrote: >> >> Hi Developers, >> >> I've an query about doing the scan using byte[] help of LibClamAV.dll(win32). If anyone know the methods to pass the byte[] provide the details?. >> >> Note: >> I able to do the scan a physical path file. But not able to do with byte[]. Please help me. > > It sounds like you are interacting with libclamav from C#. ClamAV requires a rewindable file stream, so a byte array can’t be scanned on its own. > > You could map the byte array to a MemoryMappedFile. > > http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile <http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile> > > Then you could potentially pass the file descriptor for this to native library. > >> >> Regards, >> Suresh Shanmugam. >> >> _______________________________________________ >> http://lurker.clamav.net/list/clamav-devel.html >> Please submit your patches to our Bugzilla: http://bugs.clamav.net >> >> http://www.clamav.net/contact.html#ml > > _______________________________________________ > http://lurker.clamav.net/list/clamav-devel.html > Please submit your patches to our Bugzilla: http://bugs.clamav.net > > http://www.clamav.net/contact.html#ml _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net http://www.clamav.net/contact.html#ml
signature.asc
(application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJY676uAAoJEKJq8VjVbt2pMMEP/0mNBKGAjQK0+5k+uoeqFvBH yJCFGZb8OfYcpIThJFJE9+NSnPNypuRzLOF/vYGDf0Md6oedBn8VqTSkCdYUkXnY XhdKC0F7ig0B7QGLkJFp7LXijFq1grMb2YKlzAVgJmSQAiGnFdtXQn8O8CTdwLeS i48NtA8LsJQVxv8qDSsUn0kZnBuGa2nRAMT4sZ/vFQdAxbrby/HzhO0N4yXTFqAz 9Y/mlEc9x5eolmFadOWBX2ANUnMtAMPE8wYz6xjS99VMG/xhcHpdvij9eNWXJgSk NwWR9nFmS9xOzbSL422SUmCsydIYtGLoBOWc9RLvApJjvTT5ZtOI6E4c+Nrj9hCr cNdM9E1n/uhxzsE8WZlYFWPJFDIiGhEfyw2VFxKNlWCMLnZUFXuJaZFHv0u2QH70 F6UvXgq46W5fxwPe14G52clUYImorHcncJCHEQvUVkGuIdKAEYtoYmtUMAnosPoq UkduwyY9GeSzFd4tU7uiGy2b+6AI0h/IHY+5Q2gImbdxI+um/zqCVpOBSKEtpJ4Q dueSp/cLUAek4AB7QiSVbhCDPKeTDy9bRvH2613/kAOK3aiAGihvnCdEvLhy4Mpm lJQ5PocDGWknHtLX6jVQp4Us/0wUBZByGrZZSu2EELYZg9ivnSqVxX53moqagNi+ u/CV+sB7jZDXfNVCqrDp =eDki -----END PGP SIGNATURE-----