Commit graph

58 commits

Author SHA1 Message Date
Micah Snyder
d7979d4ff7 Restructured scan options flags from a single bitflag field to a structure containing multiple bitflag fields. This also required adding a new function to the bytecode API to get scan options a la carte, and modifying the existing function to hand back scan options in the old/deprecated uint32_t bitflag format. Re-generated bytecode iface header files.
Updated libclamav documentation detailing new scan options structure.
Renamed references to 'algorithmic' detection to 'heuristic' detection. Renaming references to 'properties' to 'collect metadata'.
Renamed references to 'scan all' to 'scan all match'.
Renamed a couple of 'Hueristic.*' signature names as 'Heuristics.*' signatures (plural) to match majority of other heuristics.
2018-12-02 23:06:59 -05:00
Steven Morgan
7d4213a729 bb11420 - fix preclass/cache interaction. 2015-11-04 14:46:46 -05:00
Mickey Sola
46a35abe56 mass update of copyright headers 2015-09-17 13:41:26 -04:00
Steven Morgan
5d872d36c5 bb11338 - better placement of an assert(). 2015-06-17 17:13:09 -04:00
Shawn Webb
cd94be7a52 Silence a bunch of compiler warnings in libclamav 2014-07-10 18:11:49 -04:00
Shawn Webb
60d8d2c352 Move all the crypto API to clamav.h 2014-07-01 19:38:01 -04:00
Shawn Webb
da6e06dd68 Provide further abstractions to the OpenSSL integration work 2014-02-28 12:12:30 -05:00
Shawn Webb
4fa2f50832 Revert "bb9735 - Add ability to purge engine cache"
This reverts commit 433a335fb9.
2014-02-25 13:21:42 -05:00
Shawn Webb
433a335fb9 bb9735 - Add ability to purge engine cache 2014-02-25 12:51:14 -05:00
Shawn Webb
f077c6174f Fix some race conditions. Fix some memory leaks. 2014-02-13 13:05:50 -05:00
Shawn Webb
a1cbd793f3 Fix all memory leaks introduce by OpenSSL backport. 2014-02-12 17:42:48 -05:00
Shawn Webb
7fb5036fb2 Make Valgrind happy. Rely less on EVP_MD_CTX_create. 2014-02-08 01:42:41 -05:00
Shawn Webb
b2e7c931d0 Use OpenSSL for hashing. 2014-02-08 00:31:12 -05:00
David Raynor
af34d9815e Put engine option checks in the right place for cache functions 2013-12-11 14:58:07 -05:00
Shawn Webb
34e9acb098 Add option to disable the cache. Add a new bitfield in the engine struct that will govern options relating to engine internals. 2013-11-15 19:15:20 +00:00
David Raynor
a3dcc429a6 Scan_all: only cache when truly clean 2013-06-18 12:30:21 -04:00
David Raynor
f2e5083393 cache: cacheset_remove fix and better logging 2013-04-15 17:58:26 -04:00
David Raynor
b89dc676f7 libclamav: splaytree cacheset_remove fix 2013-02-27 11:34:13 -05:00
David Raynor
f703e46afa libclamav: fix null check in cache_remove() 2013-02-07 12:23:45 -05:00
David Raynor
1f765cf976 downgrade cacheset_remove node-not-found to debug level 2012-12-19 17:15:57 -05:00
David Raynor
f129bc1f34 Refactoring cache_remove to engine instead of full context object 2012-11-27 16:17:31 -05:00
David Raynor
59d02e32e5 cache_remove and cacheset_remove functions to support corrections of false negatives 2012-11-27 11:24:52 -05:00
David Raynor
84c35b01f5 bb#5750 2012-09-13 12:16:03 -04:00
aCaB
ed98fae7ad bb#4669 2012-05-08 15:35:26 +02:00
Török Edvin
f304dc688a fmapify: fix const-ness warnings 2012-01-05 14:16:09 +02:00
Török Edvin
a7cf187a0c Make cl_load thread safe (bb #2333).
Parallel cl_load() crash (bb #2333).
Reason is twofold:
 - cache.c had 2 'static' global variables, thus trying to initialize same cache
 from multiple threads
  - bytecode2llvm.cpp: something in LLVM 2.7 is crashing when loading in
  parallel

Fix is to drop the 'static' on the variable (cache is per engine already).
This also fixes a potential memory leak in clamd!

The other part of the fix is to turn on the mutex around bytecode compilation
always. We don't call cl_load in parallel, so this doesn't affect clamd, but
some may need to call cl_load in parallel.
2010-11-04 21:53:03 +02:00
Török Edvin
91505254dc Fix build without pthreads bb #1897. 2010-05-07 13:00:11 +03:00
Török Edvin
fa9612e672 support building without pthreads (#1897). 2010-05-07 10:53:18 +03:00
Török Edvin
65cc5979e4 Better fix for found_possibly_unwanted and caching.
We treat found_possibly_unwanted as EMAX, except we can't cache
these at all, not even at their own reclevel, and we certainly can't cache
level0 (since we know it'll be virus).
We are still caching siblings in an archive, as long as they don't hit emax
themselves.
2010-03-10 14:49:22 +02:00
Török Edvin
4933f3449b Revert "don't cache possible unwanted"
This reverts commit 8e47245d4a.
There is a better way to fix this.
2010-03-10 14:38:50 +02:00
aCaB
8e47245d4a don't cache possible unwanted 2010-03-10 01:53:24 +01:00
aCaB
37002feeee remove aborts from cache.c: it's gonna crash anyway :) 2010-03-06 03:40:38 +01:00
aCaB
c5ed82baca cache.c cleanup and minor fixes 2010-03-06 03:10:03 +01:00
aCaB
2b70f02a2a bb#1856 2010-03-05 22:17:46 +01:00
aCaB
aef8d4acbf add spam to cache and magicscan 2010-03-05 17:15:08 +01:00
Török Edvin
f6798708fd Fix some pointer dereferences, and sizeof.
There were some variables initialized with values from dereferenced pointers,
and the null check after the init.
Also sizeof must be applied to pointed to element.
2010-01-15 18:20:22 +02:00
aCaB
52f52931a2 cache final fixes 2010-01-15 03:00:15 +01:00
aCaB
6223810ba0 tie cache to engine 2010-01-14 23:14:55 +01:00
aCaB
d982ac65e3 temp 2010-01-14 16:14:07 +01:00
aCaB
402f4b19d9 caching final 2010-01-14 04:38:31 +01:00
aCaB
08605d2f07 splay + age 2010-01-13 00:03:30 +01:00
aCaB
211fc872d9 track parents 2010-01-11 19:17:22 +01:00
aCaB
5bf3c76350 micro oprimization 2010-01-11 13:10:36 +01:00
Török Edvin
422faf754c Fix infinite loop in lookup.
This happens due to deleted keys filling the hash,
workaround this issue for now, if this is a performance hog
we'll need to periodically clean up the deleted slots by rehashing
elements.
2010-01-11 12:43:21 +02:00
aCaB
1e4d565677 splay replace policy 2010-01-10 20:24:09 +01:00
aCaB
a2c45a6bf5 cache comparisons 2010-01-09 16:21:48 +01:00
aCaB
5b95022bbf splay 2010-01-09 02:19:25 +01:00
aCaB
a6f7b46772 have i fucked it up? 2010-01-08 16:05:02 +01:00
aCaB
64e6c97fdd performance testing 2010-01-08 01:39:25 +01:00
aCaB
607904244a Merge branch 'cache' of git.clam.sourcefire.com:/var/lib/git/clamav-devel into cache 2010-01-07 23:38:33 +01:00