Török Edvin
4e1ff79bea
Test field offset rather than size.
...
Just because fields are packed, doesn't mean the struct doesn't have padding.
16 years ago
Török Edvin
e3540e0a5f
Add sanity check for struct packing (bb #1752 ).
...
Also move some #pragma pack() to the proper position.
16 years ago
Tomasz Kojm
bb1e844cc2
fix some warnings
16 years ago
Török Edvin
be43f951c6
BytecodeSecurity setting.
16 years ago
Tomasz Kojm
7037f4ee92
make buildbot happy
16 years ago
Tomasz Kojm
53e8cd6f12
libclamav/others.c: call srand() already in cli_init() (bb#1728)
16 years ago
Török Edvin
7fdecc023c
Fix PASTE macro.
16 years ago
aCaB
58481352d5
win32 paths handling
16 years ago
aCaB
081f64735d
win32#2
16 years ago
aCaB
be4bf7f4ab
win32
16 years ago
Tomasz Kojm
e78b518630
fix some debug format
16 years ago
Tomasz Kojm
1ffccbda0a
integrate reentrant and non-recursive qsort
16 years ago
Török Edvin
2922746173
Fix make distcheck.
16 years ago
Török Edvin
d1487222f7
Draft of libclamav <-> jit communication.
16 years ago
Tomasz Kojm
435aabebc8
add #include "scanners.h"
16 years ago
Tomasz Kojm
3222a09656
libclamav: add support for Universal Binaries
...
(archives with Mach-O files for different architectures, bb#1592)
16 years ago
Török Edvin
8c0933ceab
Implement more opcodes and checking.
16 years ago
Török Edvin
0b44bb9f3b
use same symbols as 0.95 for libclamunrar_iface (bb #1535 ).
...
git-svn: trunk@5018
16 years ago
Török Edvin
00c3dfe516
provide script for package maintainers to split tarball (bb #1515 )
...
disable preloading, it doesn't work properly yet.
git-svn: trunk@4993
16 years ago
Török Edvin
cd0a934f67
Prefer libclamunrar_iface that matches version (bb #1491 ).
...
Add $libdir to ltdl searchpath (bb #1476 ).
git-svn: trunk@4992
16 years ago
aCaB
6396a96a8f
add cl_engine_get_num(CL_ENGINE_DB_OPTIONS)
...
git-svn: trunk@4967
16 years ago
Tomasz Kojm
20473dece8
libclamav/others.c: move cli_gentemp*() to others_common.c
...
clamav-milter: don't link to libclamav (bb#1463)
git-svn: trunk@4938
16 years ago
Tomasz Kojm
2accc66fef
libclamav, clamd, clamscan: replace cl_engine_(set|get) with cl_engine_set_(num|str) and cl_engine_get_(num|str)
...
git-svn: trunk@4933
16 years ago
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
16 years ago
Tomasz Kojm
99f817e731
libclamav: introduce cl_engine_settings_* API calls for copying settings between engines
...
clamd/server-th.c: respect original engine settings after db reload (bb#1380)
git-svn: trunk@4885
16 years ago
Tomasz Kojm
81d0605588
handle internal codes in cl_strerror()
...
git-svn: trunk@4812
17 years ago
Tomasz Kojm
871177cdd9
return codes cleanup (bb#1159)
...
git-svn: trunk@4749
17 years ago
Tomasz Kojm
afff80efb9
libclamav, shared: minor cleanups; fix handling of long file names (bb#1349)
...
git-svn: trunk@4670
17 years ago
Tomasz Kojm
47d40feb7a
libclamav: use LibTomMath by Tom St Denis instead of libgmp for multiple precision integer arithmetic (bb#1366)
...
git-svn: trunk@4650
17 years ago
Török Edvin
17799de206
fix CL_ENGINE_DB_TIME, time_t may well be 64-bits, so
...
writing only 32-bits will leave upper 32-bits undefined and lead to funny
results, such as VERSION command working first time, but 2nd time not showing
the DB timestamp.
git-svn: trunk@4637
17 years ago
Török Edvin
55b358f614
fix CL_ENGINE_DB_TIME, time_t may well be 64-bits, so
...
writing only 32-bits will leave upper 32-bits undefined and lead to funny
results, such as VERSION command working first time, but 2nd time not showing
the DB timestamp.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4636 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
589d8d8e99
libclamav: add default.h
...
git-svn: trunk@4578
17 years ago
Török Edvin
02b5f26cab
make regex available in libclamav_internal_utils.la, split others.c instead of
...
using #ifdef CLI_MEMFUNS_ONLY.
git-svn: trunk@4553
17 years ago
Tomasz Kojm
a37a861eec
libclamav: add CL_FLEVEL_DCONF (bb#1313)
...
git-svn: trunk@4550
17 years ago
Tomasz Kojm
695e6fd402
sync with 0.94.2
...
git-svn: trunk@4484
17 years ago
Török Edvin
33d52089fc
fix disable-unrar build: don't refer to libclamunrar_iface.la
...
with enable-unrar builds (default) warn if can't dlopen.
if unrar is disabled, don't warn, just show a debug message.
git-svn: trunk@4464
17 years ago
Tomasz Kojm
33068e0973
libclamav: drop cl_settempdir(); use cl_engine_set() with CL_ENGINE_TMPDIR and CL_ENGINE_KEEPTMP instead
...
git-svn: trunk@4416
17 years ago
Tomasz Kojm
ab0d2f054d
libclamav, clamd, clamscan: use cl_engine_set() to control AC settings
...
git-svn: trunk@4404
17 years ago
Török Edvin
0c3db7d345
move cli_rarload.
...
TODO: MEMFUNSONLY should be a separate file!
git-svn: trunk@4400
17 years ago
Tomasz Kojm
b8fe70b3a3
libclamav: drop options parameter in cl_engine_new(); replace cl_engine_dup() with cl_engine_addref()
...
git-svn: trunk@4398
17 years ago
aCaB
f5a4018bd7
dlinit in cl_init
...
git-svn: trunk@4394
17 years ago
Tomasz Kojm
370892d044
clamscan, clamd: use the new API; drop the hardcoded default limits and use the ones set in cl_engine_new()
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4384 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
c45c4c3db0
add cl_engine_(set|get)
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4378 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
724b2bf770
Move cl_engine from clamav.h to others.h; move cl_limits to cl_engine;
...
New API calls:
int cl_init(unsigned int options);
struct cl_engine *cl_engine_new(unsigned int options);
int cl_engine_compile(struct cl_engine *engine);
struct cl_engine *cl_engine_dup(struct cl_engine *engine);
int cl_engine_free(struct cl_engine *engine);
more to come..
WARNING: THE BRANCH IS CURRENTLY BROKEN AND SHOULD NOT BE USED
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4370 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
5e035bdf9b
update flevel/revision
...
git-svn: trunk@4313
17 years ago
Tomasz Kojm
515350689a
bump flevel and revision
...
git-svn: trunk@4259
17 years ago
Tomasz Kojm
ba1cbe022a
libclamav/others.c: bump f-level
...
git-svn: trunk@4160
17 years ago
Tomasz Kojm
6670d61d4b
drop support for Cygwin (due to broken ClamAV builds)
...
git-svn: trunk@4143
17 years ago
Tomasz Kojm
82ded8f515
fix gcc warnings
...
git-svn: trunk@4136
17 years ago
Tomasz Kojm
de5582b666
libclamav/others.c: fix fd feak on error path - bb#1141
...
git-svn: trunk@4124
17 years ago