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
7d39618297
fix quoting of version.
...
git-svn: trunk@3565
18 years ago
Török Edvin
8b46ba3f1c
add AC_C_RESTRICT (bb #452 )
...
git-svn: trunk@3564
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
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
Török Edvin
091b19c3a3
more documentation update
...
git-svn: trunk@3555
18 years ago
Tomasz Kojm
3ae7b3aca6
on Solaris/Intel bm_shift could be improperly allocated (bb#773)
...
git-svn: trunk@3554
18 years ago
Tomasz Kojm
43a5497d10
fix memory errors in new code (bb#793)
...
git-svn: trunk@3551
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
Tomasz Kojm
49fb1de4b7
advertise itself as HTTP/1.0 client
...
git-svn: trunk@3545
18 years ago
aCaB
fee30f6ef4
bb#474
...
git-svn: trunk@3544
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
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
aCaB
c1856fcbce
libclamunrar_iface - realign structs - see bb#474
...
git-svn: trunk@3535
18 years ago
aCaB
a6bf7fd3be
libclamunrar - realign structs - see bb#474
...
git-svn: trunk@3534
18 years ago
Tomasz Kojm
5a3aeff49f
fix handling of special characters in mprintf/logg (bb#360)
...
git-svn: trunk@3533
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
Tomasz Kojm
bcbe6ad713
reduce the number of error messages (bb#478)
...
git-svn: trunk@3530
18 years ago
Tomasz Kojm
bafa192b04
fix typos introduced in r3503 (thanks Edwin)
...
git-svn: trunk@3528
18 years ago
Török Edvin
b07ca9d9c6
fix typo (thanks Nigel)
...
git-svn: trunk@3527
18 years ago
Tomasz Kojm
587d344b1f
add error reporting to daemonize() (bb#729)
...
git-svn: trunk@3526
18 years ago
Török Edvin
f2895a0d7c
handle E2BIG correctly, avoid infinite loops on iconv errors. (bb #785 )
...
git-svn: trunk@3525
18 years ago
Tomasz Kojm
9f71410ad3
if available use dscl on Mac OS X (bb#753)
...
git-svn: trunk@3524
18 years ago
Tomasz Kojm
48eec71b0f
disable 'Unknown RAR pack method' error message due to false alerts with some SFX archives (bb#399)
...
git-svn: trunk@3523
18 years ago
Tomasz Kojm
ad08b903a5
don't link with nsl if not needed (bb#754)
...
git-svn: trunk@3522
18 years ago
Tomasz Kojm
0aa3ba0660
respect custom dbdir settings in print_version() (bb#699)
...
git-svn: trunk@3521
18 years ago
Tomasz Kojm
df599e74f9
drop support for direct fd passing (not maintained)
...
git-svn: trunk@3520
18 years ago
Török Edvin
4812a022c4
fix EOF handling, bug introduced in r3515.
...
git-svn: trunk@3519
18 years ago
Tomasz Kojm
1d643803e5
drop internal snprintf implementation
...
git-svn: trunk@3518
18 years ago
Tomasz Kojm
3a68e8746a
add missing #pragma pack directives (bb#769)
...
git-svn: trunk@3517
18 years ago
Tomasz Kojm
3c5f7c0814
use %lu/(unsigned long int) instead of %ju/(uintmax_t) (bb#444)
...
git-svn: trunk@3516
18 years ago
Török Edvin
b0b8398b48
* contrib/entitynorm:
...
* use fewer entities, browsers don't support all either.
* update to generate code for new entconv.
* no need for configure, use just a simple Makefile
(it is an internal tool)
libclamav/entconv.c, hashtab.c, htmlnorm.c:
* don't allocate memory for each entity_norm call.
* don't touch length of mmaped area (bb #785 )
* update htmlnorm to use new entity_norm
git-svn: trunk@3515
18 years ago
Török Edvin
0bc4d4742a
fix a gcc warning (bb #786 ). Thanks to Gianluigi Tiesi <sherpya*netfarm.it>
...
git-svn: trunk@3513
18 years ago
Török Edvin
4e1127c594
AC_TRY_LINK already adds a main(), remove duplicate main()
...
entconv improvements to improve security and performance
Part I for (bb #686 , #386 )
TODO:
* optimize entity_norm
* create testfiles for unicode encoding variants
* create a regression test
* check for memory leaks
git-svn: trunk@3511
18 years ago
aCaB
afc57127b2
splitted test files
...
git-svn: trunk@3509
18 years ago