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 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
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJY66fZAAoJEKJq8VjVbt2pbtEP/12k5TUZO0mFY5WrQkgS14Le
iCSDg5RQmI+UWV9Y5ffkwhy1HtVNIp9Jwu2V1MHD/d7VoKzrwQKYMiPxpeFE5BZq
A/K5hUCznIgZWqxhpElx7EChA1D4GYuA22GYspeNebP6NSJzNl3oaNRJUM9XcGrv
4kDQjK2w/l1oXbL5h5imare0B8NnAibK/3l9DXcuLBY/mMoRF+4RmPvtvdxPT6HP
WvQN9NOKRlaftyn81rBrGpXVfL2C5CC9ldbLIMVr+hgzER62udW35xbEYgbcmP7w
2bq+wKwrJqEFCz01sJ6/VEe/eRWaIL/ARpUJ+hNYgr5q0ciXLPmYX9WYk65l11SS
ekI1ijGXyTb3KtynmfPaQfyA6N4toGE7zgTCbwAG/nCi4Sf9ruEg93Tp/1CGft2A
cM931SdvYWk6XizNN1Cdh7jWEqHqXxb/vIENKuagF5V1rjjkw+6VHphdlvhpvPFQ
a5AKrhJY7wRsX0q6tiActMeKrdtr26jEcUnowMrTu/z3/iXyFq93oaJ1QLt3Jx9s
MQ1xhisQIIULaJtJr6TsQRn9s0/0NkZ794wlRPczR9Hlq8erYNsfw5zfUJjR8rzG
ZU2jCVFfZnmzaOtquMkybu0tef1st+pixSJxPSFcdDIl0tRpXhOKzc8uJkb7M+dI
QkmraHEasouqalYsYS5U
=PSi3
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.