Shawn Webb
b2e7c931d0
Use OpenSSL for hashing.
11 years ago
David Raynor
bebd86a60b
bb#5343
13 years ago
Török Edvin
13bfb27361
bb #4097
...
Normalize Big5 dot in html.
14 years ago
Török Edvin
0090efc0f4
Disable entconv debug messages.
...
They spam too much.
15 years ago
Tomasz Kojm
cc447ac82c
configure, libclamav: fix compile issues on IRIX (bb#1532)
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
Török Edvin
6a21552ef2
have configure define NDEBUG unless we use --enable-debug, instead of having
...
to #ifndef CL_DEBUG #define NDEBUG #endif in each .c file that uses assert.
If you want assertions enabled you'll need to use --enable-debug to configure,
as until now, no change there.
git-svn: trunk@4343
17 years ago
aCaB
1405207a2b
bb#1219
...
git-svn: trunk@4229
17 years ago
Tomasz Kojm
2023340a41
update copyrights and stick more files to GPLv2; move and add more credits to the AUTHORS file; add COPYING.BSD
...
git-svn: trunk@3749
17 years ago
Török Edvin
758b2755c5
fix memory leak (patch from TK)
...
git-svn: trunk@3719
17 years ago
aCaB
2455584143
sync to trunk
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3599 77e5149b-7576-45b1-b177-96237e5ba77b
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
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
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
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
Török Edvin
f2895a0d7c
handle E2BIG correctly, avoid infinite loops on iconv errors. (bb #785 )
...
git-svn: trunk@3525
18 years ago
Török Edvin
4812a022c4
fix EOF handling, bug introduced in r3515.
...
git-svn: trunk@3519
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
fbd8fe6916
remove dead code
...
git-svn: trunk@3512
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
Török Edvin
24e4c0d457
don't make tmp_move negative (bb #772 ).
...
git-svn: trunk@3499
18 years ago
Török Edvin
6eac0e0612
improve iconv() detection, by actually trying to link a test-program (bb #599 ).
...
git-svn: trunk@3485
18 years ago
Török Edvin
38a0019993
stick to GPLv2
...
git-svn: trunk@3121
18 years ago
Török Edvin
736112931b
handle & in URLs, even with
...
entity-converter off; don't leave & in URLs (bb
#535 )
git-svn: trunk@3100
18 years ago
Tomasz Kojm
84fd5a614c
fix some possible error path leaks by changing cli_realloc() to cli_realloc2()
...
git-svn: trunk@3064
18 years ago
Török Edvin
8869856ebe
remove unnecessary include
...
git-svn: trunk@3046
18 years ago
Török Edvin
462e8e5eb3
apply next set of patches for enabling phishing code
...
git-svn: trunk@3043
18 years ago
Török Edvin
293b4d909d
Remove cl_experimental wrapper for phishcheck, and entconv
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/temp_dconf_phishenable@2980 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
e4ba6d85cc
leave <0x20 characters untouched in cl_experimental (don't normalize them to &xx;)
...
git-svn: trunk@2942
18 years ago
Török Edvin
c1544144e3
fix gcc -W* warnings
...
git-svn: trunk@2929
18 years ago
Török Edvin
0134b0e9c8
Don't cache iconv_open() failures (closes bb #329 ).
...
git-svn: trunk@2826
19 years ago
Török Edvin
beb9ff103a
Don't normalize buffer shorter than 2 bytes.
...
git-svn: trunk@2760
19 years ago
Sven Strickroth
a99111f050
remove old CVS-stuff and make the repository look more like SVN
...
git-svn: trunk@2755
19 years ago
Tomasz Kojm
3505d575a3
fix incorrect use of isspace() in experimental code
...
git-svn: trunk@2750
19 years ago
Tomasz Kojm
8b19830555
a couple of fixes from Edwin
...
git-svn: trunk@2740
19 years ago
Tomasz Kojm
e98f12a201
cleanup includes
...
git-svn: trunk@2738
19 years ago
Nigel Horne
240bee97e7
Code tidy for bounds checking compilers
...
git-svn: trunk@2723
19 years ago
Tomasz Kojm
093789b9ef
fix whitespace normalization (bb#283)
...
git-svn: trunk@2687
19 years ago
Tomasz Kojm
c8184020c4
apply entconv patch from Edwin
...
git-svn: trunk@2675
19 years ago
Nigel Horne
473b954b5e
Fix compilation error on earlier OpenBSDs
...
git-svn: trunk@2668
19 years ago
Tomasz Kojm
f2935ff9e5
fix memory corruption in experimental code (bb#227)
...
git-svn: trunk@2631
19 years ago
Tomasz Kojm
00e7d3b4a2
iconv: fix incorrect resuming on invalid UTF8 character
...
git-svn: trunk@2586
19 years ago
Tomasz Kojm
3506ac49f7
add encoding and entity normalizer from Edwin (bb#145)
...
git-svn: trunk@2577
19 years ago