Tomasz Kojm
cc447ac82c
configure, libclamav: fix compile issues on IRIX (bb#1532)
2009-08-04 23:17:28 +02:00
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
2009-03-11 19:11:09 +00:00
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
2008-11-06 14:27:18 +00:00
aCaB
1405207a2b
bb#1219
...
git-svn: trunk@4229
2008-10-07 13:35:21 +00:00
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
2008-04-02 15:24:51 +00:00
Török Edvin
758b2755c5
fix memory leak (patch from TK)
...
git-svn: trunk@3719
2008-03-18 12:24:20 +00:00
Török Edvin
baedf04d66
don't leave return value uninitialized. (bb #808 ).
...
git-svn: trunk@3575
2008-02-03 08:57:05 +00:00
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
2008-02-01 19:38:52 +00:00
Török Edvin
288aa81040
forgot to remove debug line
...
git-svn: trunk@3540
2008-01-25 10:26:06 +00:00
Török Edvin
1d23b7deaa
make iconv replacement function handle NULL args (bb #792 )
...
git-svn: trunk@3539
2008-01-25 08:37:13 +00:00
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
2008-01-23 20:19:14 +00:00
Török Edvin
8b22c9b52a
optimize char reference handling
...
git-svn: trunk@3532
2008-01-23 15:43:32 +00:00
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
2008-01-23 14:22:16 +00:00
Török Edvin
b07ca9d9c6
fix typo (thanks Nigel)
...
git-svn: trunk@3527
2008-01-22 17:53:02 +00:00
Török Edvin
f2895a0d7c
handle E2BIG correctly, avoid infinite loops on iconv errors. (bb #785 )
...
git-svn: trunk@3525
2008-01-22 17:12:12 +00:00
Török Edvin
4812a022c4
fix EOF handling, bug introduced in r3515.
...
git-svn: trunk@3519
2008-01-21 18:23:42 +00:00
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
2008-01-21 15:52:21 +00:00
Török Edvin
fbd8fe6916
remove dead code
...
git-svn: trunk@3512
2008-01-20 22:20:17 +00:00
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
2008-01-20 22:18:14 +00:00
Török Edvin
24e4c0d457
don't make tmp_move negative (bb #772 ).
...
git-svn: trunk@3499
2008-01-13 09:37:43 +00:00
Török Edvin
6eac0e0612
improve iconv() detection, by actually trying to link a test-program (bb #599 ).
...
git-svn: trunk@3485
2008-01-06 18:06:56 +00:00
Török Edvin
38a0019993
stick to GPLv2
...
git-svn: trunk@3121
2007-06-30 11:50:56 +00:00
Török Edvin
736112931b
handle & in URLs, even with
...
entity-converter off; don't leave & in URLs (bb
#535 )
git-svn: trunk@3100
2007-06-16 17:03:42 +00:00
Tomasz Kojm
84fd5a614c
fix some possible error path leaks by changing cli_realloc() to cli_realloc2()
...
git-svn: trunk@3064
2007-05-25 23:10:58 +00:00
Török Edvin
8869856ebe
remove unnecessary include
...
git-svn: trunk@3046
2007-05-01 19:18:44 +00:00
Török Edvin
462e8e5eb3
apply next set of patches for enabling phishing code
...
git-svn: trunk@3043
2007-05-01 16:46:52 +00:00
Török Edvin
e4ba6d85cc
leave <0x20 characters untouched in cl_experimental (don't normalize them to &xx;)
...
git-svn: trunk@2942
2007-03-14 19:21:52 +00:00
Török Edvin
c1544144e3
fix gcc -W* warnings
...
git-svn: trunk@2929
2007-03-10 16:06:15 +00:00
Török Edvin
0134b0e9c8
Don't cache iconv_open() failures (closes bb #329 ).
...
git-svn: trunk@2826
2007-02-21 18:23:16 +00:00
Török Edvin
beb9ff103a
Don't normalize buffer shorter than 2 bytes.
...
git-svn: trunk@2760
2007-02-17 19:24:31 +00:00
Sven Strickroth
a99111f050
remove old CVS-stuff and make the repository look more like SVN
...
git-svn: trunk@2755
2007-02-17 19:02:20 +00:00