Commit Graph

193 Commits

Author SHA1 Message Date
Steven Morgan
fd43d6103c bb11742 - fix compiler warnings. Patch contributed by Ruga. 2017-02-10 12:53:24 -05:00
Steven Morgan
22cb38ed24 pull request #53(2/4): Spelling fix by klemens(ka7). 2016-10-19 15:57:45 -04:00
Mickey Sola
46a35abe56 mass update of copyright headers 2015-09-17 13:41:26 -04:00
Steven Morgan
a80453e6e9 Merge master to features/yara. 2015-05-01 18:36:48 -04:00
Kevin Lin
fe54f710fc clambc info option updated for new hook type 2015-03-03 16:12:22 -05:00
Kevin Lin
47c2d618cd added BC_PRECLASS hook support; replaces target type 13 2015-03-03 15:00:55 -05:00
Kevin Lin
c648e6b490 Merge branch 'master' into klin/pcre_support
Conflicts:
	clamconf/clamconf.c
	clamscan/manager.c
	docs/signatures.tex
	sigtool/sigtool.c
2014-10-31 11:10:41 -04:00
Kevin Lin
90379a9e98 fixed formatting for short names in perf tracking 2014-10-22 17:56:49 -04:00
Kevin Lin
5c2c723361 added pcre execution time and match performance tracking
fixed an issue with statistics reporting with no signatures loaded
2014-09-16 15:56:56 -04:00
Kevin Lin
99e22630f4 opts: converted bytecode-statistics to generic statistics w/ strarg 2014-09-16 15:26:19 -04:00
Kevin Lin
032ec2192e fixed issue in bytecode statistics avg time reporting 2014-09-09 17:48:35 -04:00
Kevin Lin
7c9c4fab22 bytecode: various changes from code review 2014-08-26 17:02:41 -04:00
David Raynor
0b28c74878 Assign the right type in cli_bytetype_helper 2014-08-26 11:03:17 -04:00
Kevin Lin
5b5be2a65d win32: fixed additional OS specific build issues
bc2llvm: removed redundant macro causing issues in win32
2014-07-25 20:10:23 -04:00
Kevin Lin
0ff13b3138 clambc: added diagnostic tools for bytecode IR
clambc: added option to print bytecode IR
TODO: add diagnostic functions to win32 project

Conflicts:

	shared/optparser.c
2014-07-25 12:06:13 -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
Kevin Lin
c6a3b294a9 bytecode: fixed a compiler issue and warnings 2014-06-03 11:47:57 -04:00
Kevin Lin
3107a6c24f bytecode: fixed issue with older versions of g++ 2014-06-03 11:19:01 -04:00
Kevin Lin
f3575db23c bytecode: added json-specific ctx members 2014-05-06 13:43:02 -04:00
Shawn Webb
b2e7c931d0 Use OpenSSL for hashing. 2014-02-08 00:31:12 -05:00
David Raynor
dac4e48755 libclamav: non-LLVM interpreter, fix edge check, cid #10432 & #10446 2013-08-09 17:07:10 -04:00
David Raynor
6a9086d240 libclamav: cli_bytecode_prepare_interpreter() free in error case, cid #10504 & #10505 2013-08-09 15:48:13 -04:00
Shawn Webb
241e7eb147 bb6258 - Add warnings when allocations fail 2013-03-01 13:51:15 -05:00
Shawn Webb
9691454612 bb6091 - check lseek() return 2013-02-28 19:32:29 -05:00
Carl Wu
8254e4adb5 cwu_cid#_10269: fix 10269 2013-02-20 11:21:30 -05:00
Ryan Pentney
3bd9a14c8c Fixed coverity bugs 11378, 11379, 11380 2013-02-07 08:41:46 -08:00
Steve Morgan
16c4fcdd10 performance statistics for bytecode hooks 2012-12-07 08:09:10 -08:00
Steve Morgan
38956aacb0 windows-friendly bytecode stats 2012-12-06 12:36:21 -08:00
Steve Morgan
54402320c0 Add bytecode performance statistics 2012-12-05 15:48:52 -08:00
Shawn Webb
e522909e19 bb6061 2012-11-19 13:20:33 -05:00
Steve Morgan
6ad45a2931 add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and clamscan with unit tests 2012-10-18 14:12:58 -07:00
David Raynor
7ef9aa8ade bb #5199 and bb #5200 2012-09-14 10:38:56 -04:00
Shawn webb
042a78ac60 Fix previous commits 2012-07-10 16:51:53 -04:00
Shawn webb
6a049897d9 BB#5455 2012-07-10 13:17:45 -04:00
David Raynor
bebd86a60b bb#5343 2012-06-22 16:55:29 -04:00
aCaB
d4d4bce9c7 bb#3789 part 2 2012-02-29 18:39:57 +01:00
Török Edvin
3d664817f6 fix recursion level crash (bb #3706).
Thanks to Stephane Chazelas for the analysis.
2011-10-08 12:12:22 +03:00
Török Edvin
63feb6cdf4 Add some performance measurement code.
Default off, activated by --dev-performance, and always on in c4w.
2011-02-14 19:19:53 +02:00
Török Edvin
0796f1cab5 bytecode: successfully skip bytecodes that use unknown APIs
When unknown APIs are used, the bytecode is skipped.
However we were still checking that the number of loaded functions is correct,
and of course we were failing because when skipping the number of loaded functions is
0. Fix this by not checking the number of loaded functions when skipping a
bytecode.
2011-02-14 10:15:05 +02:00
aCaB
7cbc72d3b1 c4w: error path engine leak 2010-11-09 19:02:53 +02:00
Török Edvin
110731e784 Fix valgrind warning. 2010-10-18 14:36:19 +03:00
Török Edvin
4116c65d1b Add bytecode API to determine whether running under JIT. 2010-10-18 12:35:39 +03:00
Török Edvin
d7531f2ad2 Fix warnings. 2010-10-18 12:24:11 +03:00
Török Edvin
35d6165fa5 bytecode: fix multiple bytecode execution in same hook.
Do not reset filesize to 0.
Otherwise only the 1st bytecode executed in a hook can really scan the file,
all further bytecodes executed in same hook will fail to read anything from the
file.
2010-10-18 10:56:31 +03:00
Török Edvin
6b5af78c33 bytecode_vm: do a 2nd pass over types to update array sizes.
TODO: in the future the .cbc should include these sizes itself.
2010-10-18 10:48:18 +03:00
Török Edvin
8a8dbd59ea bytecode test mode: collect & diff events for JIT and interpreter.
If execution is different for JIT and interpreter test mode shows error.
2010-10-18 10:48:14 +03:00
Török Edvin
f1ea72ae5b Fix memory leak in runlsig (bb #2291). 2010-09-28 13:06:14 +03:00
Török Edvin
93e0033fb2 Avoid 'line too long for provided buffer'.
This time it was just a message that didn't prevent the DB to be loaded.
Silence it though by using at least a 4k buffer always.
2010-09-11 16:29:21 +03:00
Török Edvin
f73212dc62 Fix bytecode virusname reporting (bb #2255).
Also adds possibility to stop a hook from executing, and set
a virus as heuristic (by using BC.Heuristic* name)
2010-09-10 22:11:32 +03:00