Commit Graph

84 Commits

Author SHA1 Message Date
Micah Snyder (micasnyd)
b9ca6ea103 Update copyright dates for 2021
Also fixes up clang-format.
2021-03-19 15:12:26 -07:00
Micah Snyder
206dbaefe8 Update copyright dates for 2020 2020-01-03 15:44:07 -05:00
Mickey Sola
4fee702fc3 clamonacc - conform to clang-format 2019-10-02 16:08:29 -04:00
Jonas Zaddach
3fc316c0c4 Trace instructions in bytecode VM 2019-10-02 16:08:19 -04:00
Micah Snyder
52cddcbcfd Updating and cleaning up copyright notices. 2019-10-02 16:08:18 -04:00
Micah Snyder
72fd33c8b2 clang-format'd using new .clang-format rules. 2019-10-02 16:08:16 -04:00
Micah Snyder
38fe8b69a0 Added .clang-format style rules, clam-format script to automate formatting of ClamAV code, and preparing select files so that clang-format does not alter carefully formatted sections. 2019-10-02 16:08:16 -04:00
Josh Soref
7cd9337a70 Spelling Adjustments (#30)
* spelling: accessed

* spelling: alignment

* spelling: amalgamated

* spelling: answers

* spelling: another

* spelling: acquisition

* spelling: apitid

* spelling: ascii

* spelling: appending

* spelling: appropriate

* spelling: arbitrary

* spelling: architecture

* spelling: asynchronous

* spelling: attachments

* spelling: argument

* spelling: authenticode

* spelling: because

* spelling: boundary

* spelling: brackets

* spelling: bytecode

* spelling: calculation

* spelling: cannot

* spelling: changes

* spelling: check

* spelling: children

* spelling: codegen

* spelling: commands

* spelling: container

* spelling: concatenated

* spelling: conditions

* spelling: continuous

* spelling: conversions

* spelling: corresponding

* spelling: corrupted

* spelling: coverity

* spelling: crafting

* spelling: daemon

* spelling: definition

* spelling: delivered

* spelling: delivery

* spelling: delimit

* spelling: dependencies

* spelling: dependency

* spelling: detection

* spelling: determine

* spelling: disconnects

* spelling: distributed

* spelling: documentation

* spelling: downgraded

* spelling: downloading

* spelling: endianness

* spelling: entities

* spelling: especially

* spelling: empty

* spelling: expected

* spelling: explicitly

* spelling: existent

* spelling: finished

* spelling: flexibility

* spelling: flexible

* spelling: freshclam

* spelling: functions

* spelling: guarantee

* spelling: hardened

* spelling: headaches

* spelling: heighten

* spelling: improper

* spelling: increment

* spelling: indefinitely

* spelling: independent

* spelling: inaccessible

* spelling: infrastructure

Conflicts:
	docs/html/node68.html

* spelling: initializing

* spelling: inited

* spelling: instream

* spelling: installed

* spelling: initialization

* spelling: initialize

* spelling: interface

* spelling: intrinsics

* spelling: interpreter

* spelling: introduced

* spelling: invalid

* spelling: latency

* spelling: lawyers

* spelling: libclamav

* spelling: likelihood

* spelling: loop

* spelling: maximum

* spelling: million

* spelling: milliseconds

* spelling: minimum

* spelling: minzhuan

* spelling: multipart

* spelling: misled

* spelling: modifiers

* spelling: notifying

* spelling: objects

* spelling: occurred

* spelling: occurs

* spelling: occurrences

* spelling: optimization

* spelling: original

* spelling: originated

* spelling: output

* spelling: overridden

* spelling: parenthesis

* spelling: partition

* spelling: performance

* spelling: permission

* spelling: phishing

* spelling: portions

* spelling: positives

* spelling: preceded

* spelling: properties

* spelling: protocol

* spelling: protos

* spelling: quarantine

* spelling: recursive

* spelling: referring

* spelling: reorder

* spelling: reset

* spelling: resources

* spelling: resume

* spelling: retrieval

* spelling: rewrite

* spelling: sanity

* spelling: scheduled

* spelling: search

* spelling: section

* spelling: separator

* spelling: separated

* spelling: specify

* spelling: special

* spelling: statement

* spelling: streams

* spelling: succession

* spelling: suggests

* spelling: superfluous

* spelling: suspicious

* spelling: synonym

* spelling: temporarily

* spelling: testfiles

* spelling: transverse

* spelling: turkish

* spelling: typos

* spelling: unable

* spelling: unexpected

* spelling: unexpectedly

* spelling: unfinished

* spelling: unfortunately

* spelling: uninitialized

* spelling: unlocking

* spelling: unnecessary

* spelling: unpack

* spelling: unrecognized

* spelling: unsupported

* spelling: usable

* spelling: wherever

* spelling: wishlist

* spelling: white

* spelling: infrastructure

* spelling: directories

* spelling: overridden

* spelling: permission

* spelling: yesterday

* spelling: initialization

* spelling: intrinsics

* space adjustment for spelling changes

* minor modifications by klin
2018-02-27 22:00:09 -05:00
Micah Snyder
ce2dcb5392 bb11432 - cleaning up additional warning messages. 2017-08-21 17:03:42 -04:00
Micah Snyder
d18d72219f Eliminating warnings, converting iterator variables to size_t when used to compare against sizeof(). added a couple of missing #includes. 2017-08-11 16:01:50 -04:00
Micah Snyder
14e2247bd2 updating the copyright for a number of tiles. 2017-08-09 14:28:47 -04:00
Micah Snyder
d2106081ad Removing check for negative values, because the variable in question is unsigned. 2017-08-09 09:33:05 -04:00
Steven Morgan
48692affad bytecode_vm.c: fix compiler warning and reduce debug verbosity. 2016-05-09 13:53:40 -04:00
Mickey Sola
46a35abe56 mass update of copyright headers 2015-09-17 13:41:26 -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
612629994c removed comments and unused variables in bytecode interpreter 2014-03-04 10:23:57 -05:00
Kevin Lin
5db992809c fixed an issue with memory intrinsic return values 2014-02-28 16:35:47 -05:00
Shawn Webb
b2e7c931d0 Use OpenSSL for hashing. 2014-02-08 00:31:12 -05:00
Kevin Lin
08fef61fea marked integer constants too large for long type with ULL 2014-01-24 15:34:40 -05:00
Kevin Lin
c7b17b3bd3 removed an unused variable 2014-01-22 10:56:13 -05:00
Kevin Lin
90c0acc762 formatted a number of bytecode files, converted tabs to spaces 2014-01-16 17:57:40 -05:00
Kevin Lin
1aa8768db2 fixed an issue where GEP with negative offset would invalidate pointer 2014-01-16 17:56:12 -05:00
Shawn Webb
241e7eb147 bb6258 - Add warnings when allocations fail 2013-03-01 13:51:15 -05:00
Ryan Pentney
e0cab69069 Fixed signed division check as in BB#6482 2013-01-25 11:52:03 -08:00
Török Edvin
c9e456b21c fix opcode 20 error (bb #3100) 2011-07-25 16:10:54 +03:00
Török Edvin
7493b2f383 Fix previous commit.
it wants 32-bit arg for memcpy...
2011-01-20 16:55:10 +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
9eb82c24c8 bytecode_vm: fix apicall8
memstr() curiously always had haystack == needle for bytecode.
To fix this it helps if I actually read arg3 from ops[2] instead of ops[0]!
2010-10-18 11:02:52 +03:00
Török Edvin
a15fc904ed bytecode_vm: fix cli_bcapi_get_pe_section and cli_bcapi_disasm_x86.
They were not working on the interpreter, interpreter was seeing bounds errors
where there weren't any.
The 2nd parameter is a count, not a pointer size, the pointer's size
is a constant. Override the size for now.
2010-10-18 10:48:19 +03:00
Török Edvin
1c00d0ac74 bytecode_vm: record errors as bytecode events too 2010-10-18 10:48:19 +03:00
Török Edvin
2cad69f723 bytecode_vm: restore stack_id after function return
This allows pointers to local stack variables to work correctly after a call.
Previously stackid was not restored, which caused bytecode_vm to stop bytecodes,
claiming it overrun the stack, when in fact it didn't.
(stackid stores stack size).
2010-10-18 10:48:19 +03:00
Török Edvin
598d7edae0 Fix use of uninitialized value (bb #2140).
This bug may cause crashes in certain cases.
2010-07-23 22:32:46 +03:00
Török Edvin
2545f9767c Rearrange some fields in structs to avoid holes. 2010-06-09 13:44:29 +03:00
Török Edvin
f85ae23af3 Fix bswap64 in bytecode interpreter. 2010-05-14 10:41:28 +03:00
Török Edvin
9d39dc93f3 Fix bytecode interpreter nullptr comparisons. 2010-05-13 23:16:08 +03:00
Török Edvin
7ebca3d717 Fix interpreter on new bytecode API tests. 2010-05-13 22:44:41 +03:00
Török Edvin
e4a0f2c94f fix compiler warnings (bb #1872, bb #1934, bb #1935) 2010-04-13 16:19:47 +03:00
Török Edvin
349e6e118b More interpreter fixes, pdf.cbc seems to be running now. 2010-03-30 00:04:38 +03:00
Török Edvin
b9697ed80c Fix OP_BC_GEPZ/OP_BC_GEP1 in interpreter.
It helps if the interpreter actually increments the variable by a non-zero
amount.
2010-03-30 00:04:38 +03:00
Török Edvin
44e134312c More fixes for pdf.cbc. 2010-03-30 00:04:38 +03:00
Török Edvin
1678ef9e43 Fix inflate.cbc for the interpreter. 2010-03-29 11:38:52 +03:00
Török Edvin
15fd260a83 Only show all the trace/debug messages in --enable-debug mode.
This speeds up build of bytecode_vm.c, and makes the binary smaller.
2010-03-28 23:49:25 +03:00
Török Edvin
0d9b99f43e Fix bswap.cbc in interpreter mode. 2010-03-28 23:49:25 +03:00
Török Edvin
7f6b55a124 Downgrade some messages to debug. 2010-03-24 17:55:04 +02:00
Török Edvin
48fc8b9852 Leak testcase. 2010-03-24 14:14:33 +02:00
Török Edvin
145ca5cb73 Fix distcheck. 2010-03-24 12:49:23 +02:00
Török Edvin
5dfb4bf136 match_with_read appears to be working! 2010-03-24 11:29:56 +02:00
Török Edvin
50829fbf12 Fix read of pedata in interpreter. 2010-03-24 10:41:11 +02:00
Török Edvin
0dd40a5490 Fix OP_BC_COPY. 2010-03-24 10:16:41 +02:00