mko-x
a21cc6dcd7
Add explicit log level parameter to application logging API
...
* Added loglevel parameter to logg()
* Fix logg and mprintf internals with new loglevels
* Update all logg calls to set loglevel
* Update all mprintf calls to set loglevel
* Fix hidden logg calls
* Executed clam-format
4 years ago
micasnyd
140c88aa4e
Bump copyright for 2022
...
Includes minor format corrections.
4 years ago
Micah Snyder
d1ccf7747d
clang-format housekeeping
5 years ago
Mickey Sola
c0bad34b09
Fix all-match mode FP checks
...
The `cli_append_virus()` function does an FP check. If it is an FP, it
will return `CL_CLEAN` and the match/alert/virus should be discarded.
This fix will respect FP verdicts when appending virus name in ac and
bm matchers in all match mode.
5 years ago
Micah Snyder (micasnyd)
b9ca6ea103
Update copyright dates for 2021
...
Also fixes up clang-format.
5 years ago
Micah Snyder
206dbaefe8
Update copyright dates for 2020
6 years ago
Micah Snyder
ee40795fe2
Converted mpool calls to macros when USE_MPOOL is defined to clearly differentiate between function and macro behavior.
6 years ago
Micah Snyder
5f4f69102d
Correcting types from int to cl_error_t where appropriate. Eliminating unused variables and referencing unused parameters to remove warnings.
6 years ago
Micah Snyder
52cddcbcfd
Updating and cleaning up copyright notices.
6 years ago
Micah Snyder
b3e82e5e61
Replacing libclamav/cltypes.h with clamav-types.h.in, which generates a header clamav-types.h that we install alongside clamav.h.
6 years ago
Micah Snyder
72fd33c8b2
clang-format'd using new .clang-format rules.
6 years ago
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.
7 years ago
Mickey Sola
46a35abe56
mass update of copyright headers
10 years ago
Steven Morgan
21be0bd963
bb11269 - additional fix for segv in clamd.
11 years ago
Kevin Lin
38dc186fb9
bb#11269 - bm matcher no longer sets scanning window offset
...
reason: certain segments could be hashed multiple times
11 years ago
Shawn Webb
60d8d2c352
Move all the crypto API to clamav.h
12 years ago
Shawn Webb
b2e7c931d0
Use OpenSSL for hashing.
12 years ago
Steve Morgan
6ad45a2931
add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and clamscan with unit tests
13 years ago
Tomasz Kojm
e766ee04ae
libclamav/matcher-bm.c: fix error message (bb#2513)
15 years ago
Tomasz Kojm
294558a535
libclamav: minimize header parsing (bb#2065)
16 years ago
Török Edvin
aa47fb3b9e
Improve DB load time (bb #1860 ).
...
Avoid loading signatures that go into an offset-mode BM trie into the prefilter,
since this trie doesn't use the prefilter for BM anyway.
This improves load time, and filter performance.
Also set unroll to 4 in sha256.c, this seems to give best performance.
Overall this is a 16% improvement in DB load time.
16 years ago
Tomasz Kojm
a205da7fd7
libclamav/matcher-bm.c: fix offset check (bb#2032)
16 years ago
Tomasz Kojm
0d926a18fb
fix previous commit
16 years ago
Tomasz Kojm
26f558a6ce
libclamav/matcher-bm.c: properly handle scan boundaries in offset mode (bb#1840)
16 years ago
Tomasz Kojm
9d88686278
libclamav/matcher-bm.c: fix array check (bb#1840)
16 years ago
Tomasz Kojm
fdabe26578
libclamav/matcher-bm.c: only sort correct offsets (bb#1840)
16 years ago
Török Edvin
3e975a6042
missing #include.
16 years ago
Török Edvin
380ae30458
fix prefiltering build.
16 years ago
Török Edvin
02eabc6d1e
Add the rest of the prefiltering glue code.
...
This is still disabled for now (see the & 0).
16 years ago
Tomasz Kojm
424d41d344
libclamav: replace qsort implementation and optimize its common usage (bb#1721)
16 years ago
Tomasz Kojm
e6f5ac5157
libclamav/matcher-bm.c: don't use mpool (bb#1710, #1715 )
16 years ago
Tomasz Kojm
684399dc6a
check if off_min == CLI_OFF_NONE
16 years ago
Tomasz Kojm
6c26e99c59
libclamav: check file sizes for MD5 sigs in all cases
16 years ago
aCaB
49cc1e3c35
s/struct F_MAP/fmap_t/
16 years ago
Tomasz Kojm
6039e6d487
libclamav/matcher-bm.c: fix cli_bm_freeoff() (bb#1710)
16 years ago
Tomasz Kojm
04133ff998
libclamav: new signature blacklisting format (bb#1625)
...
libclamav: allow arbitrary names for .ign/.ign2 files (bb#1683)
16 years ago
Tomasz Kojm
0c190b52f7
libclamav/matcher-bm.c: use mpool in BM's offset mode
17 years ago
Tomasz Kojm
1ffccbda0a
integrate reentrant and non-recursive qsort
17 years ago
Tomasz Kojm
550dc2b321
libclamav/matcher-bm.c: fix uninitialized value warning
17 years ago
Tomasz Kojm
7962075a04
missing return
17 years ago
Tomasz Kojm
6d3c5bec1d
libclamav: use BM matcher in offset mode for PE files larger than 256kB
...
(10% speedup on average; 30-40% for large executables)
17 years ago
Tomasz Kojm
fedd1ac587
fix initial shift
17 years ago
Tomasz Kojm
9b7f6ede5d
fix detection issue in bm_offmode
17 years ago
aCaB
048d76777f
scanners to fmap - hackish
...
peheader to fmap
lacks review + elf + macho
17 years ago
Tomasz Kojm
006f5fe642
libclamav: in bm_offmode only load sigs with non-floating absolute
...
and relative offsets into BM matcher (load other ones into AC) and
use per-file computed offset table to pick up best shifts (not
enabled by default, bb#1300)
17 years ago
Tomasz Kojm
aca9ea82df
libclamav: handle relative offsets with cli_ac_data; fix offset logic
17 years ago
Tomasz Kojm
f28db33f85
libclamav/matcher-bm.c: micro-optimization
17 years ago
Tomasz Kojm
33872a43de
libclamav: improve handling of signature offsets
17 years ago
Tomasz Kojm
f70b93e1b2
libclamav/matcher-bm.c: minor performance improvement (bb#1539)
...
git-svn: trunk@5034
17 years ago
Tomasz Kojm
64b9b982c7
allow offsets for all buffer types
...
git-svn: trunk@5027
17 years ago