Török Edvin
3dcc2d784e
more tests for regex
...
run unit-tests under valgrind if available.
git-svn: trunk@3990
17 years ago
Török Edvin
82167b0a77
remove remaining CL_DEBUG, and add missing file
...
git-svn: trunk@3989
17 years ago
aCaB
de47223763
warn if no bzip2 support
...
git-svn: trunk@3988
17 years ago
aCaB
4c4651ad3a
merge disasm code
...
git-svn: trunk@3987
17 years ago
Török Edvin
250f2bc11d
fix memory leak
...
git-svn: trunk@3986
17 years ago
Török Edvin
5ee56e4103
split up regex_list.
...
begin testing for regex_suffix
git-svn: trunk@3985
17 years ago
Török Edvin
af9cdbe10a
avoid passing negative values to isspace
...
git-svn: trunk@3980
17 years ago
Török Edvin
9828566c2a
unbreak make check
...
git-svn: trunk@3979
17 years ago
Török Edvin
2e11bcdfd9
performance improvements for URL matching (bb #725 , bb #650 ):
...
* use a suffix AC-trie and a shift-or FSM to filter
* rewrite the URL regex in C
* use a perfect hash to lookup TLD and ccTLD, instead of a regex
* TODO: suffixes having a common prefix: loop over all of them
cli_ac_free: multiple virname pointing to same location
git-svn: trunk@3978
17 years ago
Tomasz Kojm
6628371daa
add REG_NOSUB
...
git-svn: trunk@3975
17 years ago
Tomasz Kojm
7a8d49e193
fix compilation error
...
git-svn: trunk@3974
17 years ago
Tomasz Kojm
92f585fbee
libclamav: use a regex for the filename field in .zmd/.rmd (bb#193)
...
git-svn: trunk@3973
17 years ago
Török Edvin
533e76aa5e
cleanup
...
some more unit tests
git-svn: trunk@3958
17 years ago
Török Edvin
474431d506
use the pointer returned from realloc, because it can change location.
...
not doing so leads to hard to reproduce bugs!
git-svn: trunk@3956
17 years ago
Tomasz Kojm
6f2f04916d
libclamav, clamd: prune old lockdb code
...
git-svn: trunk@3955
17 years ago
Török Edvin
d1d558c944
use pkg-config to locate check, if available (bb #1093 )
...
make --enable-coverage depends on unit tests being activated
fix a typo in bzip2 configure check
remove temporary log files on make clean
git-svn: trunk@3953
17 years ago
Török Edvin
ff97b85be3
add comment
...
git-svn: trunk@3952
17 years ago
Török Edvin
377a2330a1
more unit tests for js-norm
...
fix js-norm bugs discovered during unit testing
git-svn: trunk@3951
17 years ago
Török Edvin
5be3029f8f
fix crash in js parser
...
fix configure test for check: if it is not available, and we didn't pass
--enable-check, do not complain
add unit test for jsnorm bug
git-svn: trunk@3949
17 years ago
Török Edvin
745d4b38b3
add paranthesis
...
fix compiler warning
git-svn: trunk@3946
17 years ago
Török Edvin
a5f196457f
improve normalization of screnc encoded files(bb #1022 )
...
extract duplicated code into its own function
git-svn: trunk@3945
17 years ago
Török Edvin
232c4b7016
add unit tests for binaries
...
enable unit tests by default (if check is available)
add --enable-coverage to run gcov/lcov
add --enable-tests-install to install test files
git-svn: trunk@3935
17 years ago
Török Edvin
61eb9432e8
fix OpenBSD build problem
...
git-svn: trunk@3932
17 years ago
Török Edvin
eb2901515b
move cli_unescape, and cli_textbuffer_append_normalize to str.c
...
add unit-test for cli_textbuffer_append_normalize
fix a bug in cli_textbuffer_append_normalize shown by unit-test
git-svn: trunk@3930
17 years ago
Török Edvin
37e6472959
more unit tests for js normalizer
...
git-svn: trunk@3925
17 years ago
Török Edvin
4a6ade4489
add all needed files to EXTRA_DIST (to fix make distcheck)
...
create unit tests for js normalizer
cleanups
git-svn: trunk@3924
17 years ago
Tomasz Kojm
17f74f9f5c
sync with 0.93.3
...
git-svn: trunk@3922
17 years ago
Török Edvin
8be1d5a4bb
enable JS normalizer
...
git-svn: trunk@3919
17 years ago
Török Edvin
ba47dee1df
disable main()
...
git-svn: trunk@3918
17 years ago
Török Edvin
fd08e02ea3
add Javascript normalizer (not yet enabled)
...
git-svn: trunk@3917
17 years ago
Tomasz Kojm
b0c7e984a8
libclamav/ole2_extract.c, sigtool: make sigtool compatible with the new OLE2 scan scheme (bb#1086)
...
git-svn: trunk@3915
17 years ago
Tomasz Kojm
ec5e9d81db
libclamav/dlp.c: improve detection of credit card numbers (bb#941)
...
git-svn: trunk@3909
17 years ago
Török Edvin
0a80bd0221
add missing check for file open failure
...
git-svn: trunk@3904
17 years ago
Tomasz Kojm
b5513f8ddf
libclamav: add ".UNOFFICIAL" suffix to 3rd party signatures (bb#1061)
...
git-svn: trunk@3903
17 years ago
Török Edvin
ca12025309
optimize hashtab_find
...
git-svn: trunk@3892
17 years ago
Török Edvin
6bba75b225
hashtab_insert should return pointer to newly inserted element. Fix grow bug.
...
git-svn: trunk@3891
17 years ago
Tomasz Kojm
746bc18177
fix handling of nodes which also match single bytes (bb#1054)
...
git-svn: trunk@3890
17 years ago
Tomasz Kojm
f7f59c083e
sync with 0.93.1
...
git-svn: trunk@3887
17 years ago
aCaB
aa87b23c8c
comment removed
...
git-svn: trunk@3880
17 years ago
Török Edvin
53321a4cb3
avoid using C99 flexible array members (bb #1039 )
...
git-svn: trunk@3875
17 years ago
Tomasz Kojm
04ba76d2cb
minimize memory fragmentation after db reload (bb#1028)
...
git-svn: trunk@3873
17 years ago
aCaB
77fd59a8cd
ole2_extract: backport fixes from 0.93.1rc1
...
git-svn: trunk@3865
17 years ago
Tomasz Kojm
72ce4b70eb
improve handling of PDF, CAB, RTF, OLE2 and HTML files (sync with branch/0.93)
...
git-svn: trunk@3862
17 years ago
Tomasz Kojm
283363ff06
fix initialization of dbio
...
git-svn: trunk@3855
17 years ago
Tomasz Kojm
e8ae4fae02
faster loading of uncompressed .cld files
...
git-svn: trunk@3854
17 years ago
Török Edvin
a72b7d2e72
improve DB load time
...
git-svn: trunk@3853
17 years ago
Török Edvin
725a296922
build system: add configure checks for FD passing
...
m4/fdpassing.m4: move all FD passing checks here
clamd/session.[ch], scanner.[ch]:
contrib/clamd_fdscan:
add rfc2292/bsd4.4 style file descriptor passing support
this code is from Marc Balmer <marc*msys.ch>, with some portability
fixes applied
git-svn: trunk@3849
17 years ago
Török Edvin
a08739dc57
avoid name collisions on AIX (bb #947 )
...
sync with libc: minor cleanups
git-svn: trunk@3842
17 years ago
Török Edvin
29daf96bab
Link .la files first, this should avoid linking to old libclamav as in bb #931 .
...
A linker warning on OpenBSD has shown the real cause of this:
/usr/bin/ld: warning: libclamunrar_iface.so.3.3, needed by
../libclamav/.libs/libclamav.so.4.1, may conflict with libclamunrar_iface.so.4.1
When -L/usr/local/lib is needed (because of either bz2, gmp, zlib)
it was the first on the linker command-line.
If multiple -L are on the linker line they don't override each-other,
all -L directories are searched.
So "-L/usr/local/lib -lgmp -L../libclamunrar/.libs/ -lclamunrar"
means to link to libclamunrar in /usr/local/lib first, which causes linking
to the old library.
If we pass the .la files first to the linker, we avoid linking to old libraries.
git-svn: trunk@3835
17 years ago
Török Edvin
808c3684ab
avoid mixing declaration and code. Thanks Nigel!
...
git-svn: trunk@3834
17 years ago