Commit Graph

6511 Commits

Author SHA1 Message Date
Török Edvin
c19477ec23 Reduce bytecodetimeout to 5s instead of 60.
In case of buggy bytecode limits the amount of resources consumed.
2011-01-20 16:12:11 +02:00
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
f67635129a c4w/sigui: don't create another watcher on shutdown. 2011-01-20 11:06:18 +02:00
Török Edvin
fa174afe66 c4w: sigui: fix dup lines in freshclam.conf (bb #2374). 2011-01-20 10:57:02 +02:00
Török Edvin
f2a274670b c4w: s/database.clamav.net/db.local.win.clamav.net/ 2011-01-20 10:31:24 +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
Török Edvin
5007986ffd Fix build on Etch (bb #2399). 2011-01-20 10:03:55 +02:00
aCaB
d1885535af fix record check on dns query (win32 compat) 2011-01-20 03:30:08 +01:00
aCaB
74dfa7c89f c4w: init logg early, dont crash on unload if logg is not initted - bb#2468 again 2011-01-19 17:23:26 +01:00
Tomasz Kojm
d8c55f4a62 handle .sfp files 2011-01-19 16:44:50 +01:00
aCaB
14294b605d bb#2400 2011-01-19 12:17:34 +01:00
aCaB
362246faa4 Merge branch 'master' of git.clam.sourcefire.com:/var/lib/git/clamav-devel 2011-01-18 16:48:47 +01:00
aCaB
d4c6e1d69b regen pool 32bit 2011-01-18 16:48:03 +01:00
Tomasz Kojm
5c4f88a441 sigtool: handle .hs(b|u) and .ms(b|u) files 2011-01-18 16:21:44 +01:00
aCaB
a183ba35af c4w: bb#2468 - actually kill the bloody monitor... 2011-01-18 15:59:05 +01:00
aCaB
697b276e09 recompute pool sizes amd64 2011-01-18 15:57:27 +01:00
aCaB
6636be1e9d fix win32 build 2011-01-18 15:57:09 +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
d6e380fcbd regen win32 2011-01-14 23:53:47 +01:00
aCaB
5581cf5f1c Merge multihash 2011-01-14 23:34:26 +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
Tomasz Kojm
8fe6ad4805 freshclam: verify integrity of all *.cvd files during each session 2011-01-14 15:53:29 +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
0dbc437202 c4w: reverse verbose logic 2011-01-10 21:52:12 +01:00
Tomasz Kojm
478e8c3f01 sigtool: improve handling of spaces in cdiffs (bb#2090) 2011-01-10 18:57:11 +01: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