[Clamav-devel] CalmAV In-Memory Scan

Brandon Perry bperry.volatile at gmail.com
Wed Apr 5 15:28:12 EDT 2017

> On Apr 5, 2017, at 2:27 PM, Michael Engstler <michael at cybellum.com> wrote:
> Hi,
> I noticed that when using the INSTREAM command and sending it a memory
> buffer of a file, clamd takes the memory buffer and saves it to
> the TemporaryDirectory (as defined in the config file).
> This is an unnecessary overhead as it requires disk IO in order to scan the
> file which is already loaded in-memory.
> Is there any way to command clamd to scan the buffer completely in-memory
> without writing anything to the disk?

My understanding is that ClamAV requires a rewindable file stream in order to perform scans.

> Thanks,
> Michael.
> _______________________________________________
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP
URL: <https://lists.clamav.net/pipermail/clamav-devel/attachments/20170405/15868324/attachment.sig>

More information about the clamav-devel mailing list