Török Edvin
2a138cc577
reduce stack usage of cli_scanscript (bb #819 )
...
git-svn: trunk@3595
18 years ago
aCaB
850db69e9e
update limits
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3594 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
aCaB
d91ab809a2
initial rewrite of limits
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3591 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Tomasz Kojm
6b656d3608
compatibility with new matcher extension
...
git-svn: trunk@3590
18 years ago
Török Edvin
c3671221da
introduce hashset_* functions
...
use a faster hash function
use hashset to load mdb signatures
regenerate files due to hash function change
enable hash function profiling during generation
git-svn: trunk@3589
18 years ago
Tomasz Kojm
1a2906f432
add support for matching single bytes anchored to sub-signatures; bump f-level
...
git-svn: trunk@3588
18 years ago
Török Edvin
c305bb5792
fix -pedantic warning.
...
git-svn: trunk@3587
18 years ago
Török Edvin
ab0650b693
don't include both zlib and LzmaTypes.h (bb #805 )
...
fixes build failure with non-system zlib
move declaration of CLI_LZMA into lzma_iface.c
allocate CLI_LZMA* in lzma_iface.c
git-svn: trunk@3585
18 years ago
Török Edvin
015ce4a89b
support for generic text normalizer (CL_TYPE_SCRIPT)
...
git-svn: trunk@3584
18 years ago
Török Edvin
3064a5428c
generic text normalizer (bb #241 )
...
update automake files: automake complained that they were too old
git-svn: trunk@3583
18 years ago
Tomasz Kojm
96435bdc49
fix some compiler warnings
...
git-svn: trunk@3582
18 years ago
Tomasz Kojm
2fa01e2df6
fix fd handling (thanks Edwin)
...
git-svn: trunk@3580
18 years ago
Török Edvin
9e751804a2
introduce cli_ctime() that uses ctime_r() when
...
available, and falls back to locking with a mutex around
ctime(). (ensures we are using the same mutex always).
use cli_ctime() instead of the thread-unsafe ctime().
This fixes stability problems.
git-svn: trunk@3578
18 years ago
Tomasz Kojm
a647ecb2a6
set MAGIC_BUFFER_SIZE to 512
...
git-svn: trunk@3577
18 years ago
Tomasz Kojm
128c7bed98
fix invalid free() (bb#809)
...
git-svn: trunk@3576
18 years ago
Török Edvin
baedf04d66
don't leave return value uninitialized. (bb #808 ).
...
git-svn: trunk@3575
18 years ago
Török Edvin
7067a88c9b
enum encodings was missing (bb #807 )
...
git-svn: trunk@3574
18 years ago
Tomasz Kojm
3e3f77c2c2
fix error path descriptor leaks
...
git-svn: trunk@3573
18 years ago
Török Edvin
6a9b1e91e0
clean up header
...
git-svn: trunk@3572
18 years ago
Török Edvin
b3fc7f9747
use entconv to detect UTF-16BE, and UCS-4 variants
...
use only cli_readline() we don't need exact conversion
drop unused functions,
simplify encoding_norm_readline(), and rename to encoding_normalize_toascii()
git-svn: trunk@3571
18 years ago
Tomasz Kojm
4addba22e4
ndb sigs: add new target type (7) for ASCII files; handle sigs for targets 2..7 with A-C only
...
git-svn: trunk@3570
18 years ago
Török Edvin
f12c2e6825
ignore invalid URLs containing double dots, optimization: cut URL after hostname
...
git-svn: trunk@3569
18 years ago
Tomasz Kojm
8619da9120
minor code tidy; drop broken sigtouint32()
...
git-svn: trunk@3568
18 years ago
Tomasz Kojm
1cdb6cfbac
s/HAVE_GMP/HAVE_LIBGMP
...
git-svn: trunk@3567
18 years ago
Török Edvin
6053d09a36
allow to specify libgmp location, by using --with-libgmp-prefix,
...
by default current prefix is also searched
allow to specify libb2 location, by using --with-bz2-prefix,
by default current prefix is also searched
locating gmp and bz2 works by default on OpenBSD (bb #301 )
move local m4 macros to m4/
import lib-link.m4 and dependent files
quoting for autoconf macros (bb #452 )
git-svn: trunk@3566
18 years ago
Török Edvin
4c56bffa3b
build system modernization: (based on suggestion from
...
Markus Elfring <Markus.Elfring*web.de> in bb #452 )
* use AC_CONFIG_HEADER, since AM_CONFIG_HEADER is obsolete
* put configure files into auxiliary directory
* fix main declaration in FD_SETSIZE test
* check for failure on fopen in FD_SETSIZE test
* move version from AM_INIT_AUTOMAKE to AC_INIT, old form was obsolete
* eliminate automake warnings, update Makefile.am
* rename .splitted to .split (requested by aCaB)
git-svn: trunk@3563
18 years ago
Tomasz Kojm
9b0004bf1d
add missing 'break'
...
git-svn: trunk@3562
18 years ago
Tomasz Kojm
a3fe2c5ba1
make the parser more sensitive to syntax errors (bb#238)
...
git-svn: trunk@3561
18 years ago
Török Edvin
75fe12511f
when domain matchers, preserve full subdomain(bb #721 )
...
git-svn: trunk@3560
18 years ago
Nigel Horne
5d40533ed5
Handle trailing CR and change handling of truncated files
...
git-svn: trunk@3559
18 years ago
Nigel Horne
e25960d22d
Downgrade some messages from warning to debug
...
git-svn: trunk@3558
18 years ago
aCaB
b80ae27752
newlimits started
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3556 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Tomasz Kojm
3ae7b3aca6
on Solaris/Intel bm_shift could be improperly allocated (bb#773)
...
git-svn: trunk@3554
18 years ago
aCaB
36582be0a5
file count
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3553 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
aCaB
4ad62d4eb4
api drafted
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3552 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Tomasz Kojm
43a5497d10
fix memory errors in new code (bb#793)
...
git-svn: trunk@3551
18 years ago
aCaB
bf45cebea6
structs redesigned
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3550 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
aCaB
dbfb485b80
Zip module failure in pdf files - bb#617
...
git-svn: trunk@3547
18 years ago
Tomasz Kojm
79af2a64ec
properly handle stored files
...
git-svn: trunk@3546
18 years ago
Török Edvin
a6de01aa14
handle NULL characters in HTML files. (bb #539 ).
...
git-svn: trunk@3543
18 years ago
Tomasz Kojm
9518ee069d
rewrite file/folder handling code as a complete and proper solution for bb#730
...
git-svn: trunk@3542
18 years ago
Tomasz Kojm
0514d610eb
improve performance of cabinet extractor (bb#730)
...
git-svn: trunk@3541
18 years ago
Török Edvin
288aa81040
forgot to remove debug line
...
git-svn: trunk@3540
18 years ago
Török Edvin
1d23b7deaa
make iconv replacement function handle NULL args (bb #792 )
...
git-svn: trunk@3539
18 years ago
Nigel Horne
e906fef3ec
Use cli_strcasestr
...
git-svn: trunk@3538
18 years ago
aCaB
b5231f5f67
realign structs see bb#474
...
git-svn: trunk@3537
18 years ago
Török Edvin
b8a505eeda
optimize u16_normalize, encode as hex entities (Ȁ)
...
update dependencies to rebuild on hashtab.c change
support keys with common prefix by checking match length
update due to hashtab change
git-svn: trunk@3536
18 years ago
Török Edvin
8b22c9b52a
optimize char reference handling
...
git-svn: trunk@3532
18 years ago
Török Edvin
cd75ab404e
fix valid characters table for encoding name
...
skip \0 characters
account for alignfix when calculating offset
reset iconv state before reusing
fix entity handling
fix memory leaks reported by valgrind
remove unused fields
git-svn: trunk@3531
18 years ago
Török Edvin
b07ca9d9c6
fix typo (thanks Nigel)
...
git-svn: trunk@3527
18 years ago