Commit Graph

2114 Commits

Author SHA1 Message Date
Török Edvin
ecedf8a9f9 bytecode_vm: fix memset on bigendian arch (bb #2478).
Otherwise memset's count is always 0, and we are using uninitialized bytes,
causing bytecode to misbehave.
2011-01-20 16:10:30 +02:00
Török Edvin
ab402e6aae Speed up bytecode load.
Don't codegen bytecodes that have a functionality_level test in entrypoint
that would prevent them from running.
2011-01-20 16:10:30 +02:00
aCaB
26b86d8d8e add missing EOL 2011-01-20 15:04:51 +01:00
Török Edvin
4619289aef pdf: Fix missed detection (bb #2455). 2011-01-20 11:39:05 +02:00
Török Edvin
a91013cde7 pdf: fix another uninit (bb #2404). 2011-01-20 11:20:11 +02:00
Török Edvin
b5ed1fe6d3 pdf: fix uninit value (bb #2455). 2011-01-20 11:16:44 +02:00
Török Edvin
7d0f0d41af Port upstream LLVM commits to fix bb #8723.
commit 481d402ab03e163e180d2650fae13704858f8d81
Author: Eric Christopher <echristo@apple.com>
Date:   Fri Dec 3 07:45:22 2010 +0000

    Apparently OS X 10.4 doesn't have __crashreporter_info__.

    Try to fix building on the wayback machine.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120801 91177308-0d34-0410-b5e6-96231b3b80d8

commit 51e57139b3fdcf6b25453fa987463b33ff8f9adc
Author: Eric Christopher <echristo@apple.com>
Date:   Tue Dec 7 02:05:42 2010 +0000

    Two things: Fix testcase to use extern - otherwise the link will always
    succeed. Also make the testcase clearer as to what we're doing and
    emit a checking notification to the log.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121101 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-20 10:11:57 +02:00
aCaB
14294b605d bb#2400 2011-01-19 12:17:34 +01:00
aCaB
d4c6e1d69b regen pool 32bit 2011-01-18 16:48:03 +01:00
aCaB
697b276e09 recompute pool sizes amd64 2011-01-18 15:57:27 +01:00
Tomasz Kojm
d5fde2eb61 sigtool: add new options --sha1 and --sha256 2011-01-18 15:00:37 +01:00
Tomasz Kojm
f820268196 freshclam: detect and fix corruptions of existing db files 2011-01-17 19:06:57 +01:00
aCaB
58244a1f54 Merge branch 'multihash' 2011-01-14 23:32:32 +01:00
aCaB
0b82971d7d port hashmatch to non-mpool 2011-01-14 23:25:27 +01:00
aCaB
72bbfaf51e add min/max fl in loadhash
TODO:
- port to non-mpool
- sigtool and stuff
- enforce md5 only in md[bu]
- tune mpool?
2011-01-14 23:02:59 +01:00
aCaB
b99de64c6d extend checkfp to sha1 and sha256
TODO:
- add optional token in cli_loadhash
- enforce md5 only in md[bu]
- tune mpool?
2011-01-14 21:50:29 +01:00
aCaB
c32c98e55a make the hdb matcher scan and whitleist with any hash type
TODO:
- make cli_checkfp whitelist on sha's too
- enforce md5 only in md[bu]
- tune mpool?
2011-01-14 20:09:40 +01:00
aCaB
3faa97834c new hash matching 2011-01-14 17:29:19 +01:00
aCaB
38d54c9204 change alloc strategy, saves about 6MB (vs master) on 64 bit 2011-01-14 15:41:53 +01:00
aCaB
a08646d2aa Was very decent for mem usage but we want to be able to prefilter on size
This reverts commit 64634c73f7.
2011-01-14 14:51:34 +01:00
Török Edvin
bc0ef08bb7 Fix paranoid mode crash (bb #2434).
Only occurs if Paranoid mode is set in clamd.conf, or unsigned and signed
bytecode are loaded together in --enable-unsigned-bytecode mode.
2011-01-10 23:54:27 +02:00
aCaB
64634c73f7 TEST:
drop the per size hashtable and size prefilter which doesn't help at all
arrange hashes in 4 groups
currently on glibc allocator as mpool needs retuning
2011-01-09 23:45:37 +01:00
aCaB
fe2d967e4e fix hash type order 2011-01-09 23:29:38 +01:00
aCaB
0fcc8112ff enable full db load, fix ram usage 2011-01-09 16:47:40 +01:00
aCaB
125827cf0b this commit is sponsored by Bar da Ciano 2011-01-09 02:12:08 +01:00
aCaB
8f3d3f5b9d addhash fixes 2011-01-07 22:26:16 +01:00
aCaB
2296ab0f00 add hash matching 2011-01-07 19:08:49 +01:00
aCaB
096cea4600 add cli_hm_scan 2011-01-07 16:23:49 +01:00
aCaB
bb2f6b0bda hash load complete with flush and naive quicksort 2011-01-07 15:19:44 +01:00
aCaB
c802edd50e add loadhash 2011-01-07 02:59:41 +01:00
aCaB
7f67f2bbba make hashtab_clear properly clear the table 2011-01-06 14:54:12 +01:00
aCaB
153388c129 add htu32_next for enumeration 2011-01-06 14:35:46 +01:00
aCaB
b6540c3d4f add htu32 hashtab - maps uints to ptrs/uints 2011-01-05 23:57:07 +01:00
Török Edvin
a42f48819a fix --disable-pthreads build. 2011-01-04 23:54:33 +02:00
Tomasz Kojm
b240ee01e3 libclamav: improve handling of HandlerType (bb#2298) 2011-01-03 16:42:04 +01:00
Tomasz Kojm
11dbe1959b libclamav/filetypes.c: improve detection of tar files 2010-12-30 15:04:02 +01:00
Tomasz Kojm
ee50848a50 libclamav/scanners.c: improve scanning of mail files in raw mode (bb#2244) 2010-12-29 14:37:55 +01:00
aCaB
1800f03f24 fix win32 build 2010-12-28 23:40:44 +01:00
aCaB
be2651819f unconditionally compile sha1.c 2010-12-28 22:08:45 +01:00
Tomasz Kojm
53d41b9793 libclamav/blob.c: properly scan files when LeaveTemporaryFiles is enabled (bb#2447) 2010-12-28 13:05:00 +01:00
aCaB
ccaf037ab5 fix movzx/movsx disasm src size 2010-12-27 15:22:38 +01:00
aCaB
4f1cdbdddd error path leaks and similar stuff 2010-12-17 14:26:33 +01:00
Török Edvin
4d288fcab2 fix build 2010-12-14 19:24:52 +02:00
Török Edvin
0fb6e8ae18 chm: fix crash on fstat failure (bb #2429). 2010-12-14 19:19:46 +02:00
Tomasz Kojm
0d71068897 libclamav: pass array with initial matches to bytecode (bb#2397) 2010-12-14 16:08:43 +01:00
Tomasz Kojm
c3ba5156a3 libclamav/msexpand.c: fix name clash on HP-UX (bb#2398) 2010-12-14 12:21:23 +01:00
Tomasz Kojm
8f779bfbd7 libclamav/scanners.c: ScanMail wasn't always honored (bb#2426) 2010-12-14 11:35:36 +01:00
Török Edvin
df6ce9ab41 Preserve bytecode settings accross DB reloads. 2010-12-10 11:05:04 +02:00
Tomasz Kojm
2e3e4acca4 libclamav: preserve callbacks during db reload (bb#2418) 2010-12-09 13:31:17 +01:00
Török Edvin
1f87ea8f8b c4w: new error codes.
CL_ELOCK, CL_EBUSY, CL_ESTATE.
2010-12-08 11:23:43 +02:00