Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

struct cl_limits questions

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


feuerschwanz76 at web

Dec 16, 2008, 8:05 AM

Post #1 of 3 (659 views)
Permalink
struct cl_limits questions

Hello all,

i hope i am in the correct mailinglist, if not please tell where i have to go.

I wrote a program which uses the libclamav library which works fine so far.
But i have some questions about the struct cl_limits
- What are the default values of the sruct members?
- Is there a function which returns the default values?
- Where are the limits of them e.g.: maxratio?
- Is there a internal memory limit with archivememlim or is is the memory limit of the process using libclamav?

thx
Alexander
_______________________________________________________________________
Sensationsangebot verlängert: WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


acabng at digitalfuture

Dec 16, 2008, 8:35 AM

Post #2 of 3 (602 views)
Permalink
Re: struct cl_limits questions [In reply to]

Alexander Nagel wrote:
> Hello all,

Hi Alexander

> I wrote a program which uses the libclamav library which works fine so far.
> But i have some questions about the struct cl_limits
> - What are the default values of the sruct members?

The defaults are hardcoded and documented in clamd.conf and clamscan
manpage.

> - Is there a function which returns the default values?

Nope.

> - Where are the limits of them e.g.: maxratio?

See above.

> - Is there a internal memory limit with archivememlim or is is the memory limit of the process using libclamav?

This one is a minor option. It only affects bzip2 decompression which
offers 2 operating mode: a slow mode which uses a relatively small
decompression buffer and a faster mode which uses a much larger one. See
bzlib documentation for more info.


Last, a word of warning. The related api are undergoing some major
change. In the very near future you will need a different approach to
set the limits and other options. If you are developing a new
application you'd better stick to the new api which is available in svn.
Unfortunately the new interface is not yet fully established nor
documented and may be subject to some other _minor_ changes.

HtH,
-aCaB
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


feuerschwanz76 at web

Dec 16, 2008, 11:29 AM

Post #3 of 3 (601 views)
Permalink
Re: struct cl_limits questions [In reply to]

Hi aCaB,

thanks for your quick answer.
that helped a lot.

and thanks for the warning about the new api.

greets
Alexander

Alexander Nagel wrote:
> Hello all,

Hi Alexander

> I wrote a program which uses the libclamav library which works fine so far.
> But i have some questions about the struct cl_limits
> - What are the default values of the sruct members?

The defaults are hardcoded and documented in clamd.conf and clamscan
manpage.

> - Is there a function which returns the default values?

Nope.

> - Where are the limits of them e.g.: maxratio?

See above.

> - Is there a internal memory limit with archivememlim or is is the memory limit of the process using libclamav?

This one is a minor option. It only affects bzip2 decompression which
offers 2 operating mode: a slow mode which uses a relatively small
decompression buffer and a faster mode which uses a much larger one. See
bzlib documentation for more info.


Last, a word of warning. The related api are undergoing some major
change. In the very near future you will need a different approach to
set the limits and other options. If you are developing a new
application you'd better stick to the new api which is available in svn.
Unfortunately the new interface is not yet fully established nor
documented and may be subject to some other _minor_ changes.

HtH,
-aCaB
_______________________________________________________________________
Sensationsangebot verlängert: WEB.DE FreeDSL - Telefonanschluss + DSL
für nur 16,37 Euro/mtl.!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.