Commit Graph

6688 Commits

Author SHA1 Message Date
aCaB
88d09f480d make the sigload callback be aware of custom sigs 2011-06-14 19:04:02 +02:00
aCaB
a217d9a78b rework scan callbacks 2011-06-14 17:01:18 +02:00
aCaB
a0eb791022 add filetype clcb 2011-06-14 03:26:30 +02:00
Török Edvin
b21d2db5c5 logg_size is unsigned 2011-06-12 10:07:16 +03:00
Török Edvin
585fa36539 fix safebrowsing detection on certain URLs 2011-06-10 16:28:42 +03:00
aCaB
7b745b87c6 win32: properly handle release versions 2011-06-09 14:19:01 +02:00
Tomasz Kojm
83c82f1ed8 0.97.1 related changes 2011-06-09 09:34:13 +02:00
Tomasz Kojm
78d42efe1f libclamav/mew.c: harden boundary check on e8/e9 fixup 2011-06-09 08:34:21 +02:00
Tomasz Kojm
aa1169e121 fix mirror stats 2011-06-08 18:11:38 +02:00
aCaB
24ab4ad529 bb#2838 (2/2) 2011-06-08 15:27:43 +02:00
aCaB
43a6aed54c bb#2838 (1/2) 2011-06-08 14:59:20 +02:00
Tomasz Kojm
41ccfc57c8 Merge branch 'master' of ssh://git.clam.sourcefire.com/var/lib/git/clamav-devel 2011-06-07 11:01:58 +02:00
Tomasz Kojm
4093377307 handle CL_ETIMEOUT in cl_strerror 2011-06-07 11:01:27 +02:00
aCaB
656dfd0b86 bb#2818 2011-05-26 14:20:57 +02:00
Török Edvin
0b073f2e10 pdf.c: fix pdf_handle_enc 2011-05-18 11:48:15 +03:00
Török Edvin
618f62dbe6 Encrypted.PDF -> Heuristics.Encrypted.PDF
Be consistent: all engine detections are prefixed with Heuristics.
2011-05-12 15:53:13 +03:00
Tomasz Kojm
ff552617b2 freshclam/manager.c: fix return code of Rfc2822DateTime() (bb#2809) 2011-05-12 13:03:34 +02:00
Török Edvin
bdaa7959f1 win32/freshclam: fix IMS mode crash
Don't crash if gmtime is NULL (for example out of range).
FileTime is not time_t, conversion is needed, otherwise gmtime returns NULL.
2011-05-11 22:02:47 +03:00
Török Edvin
03bf66580c bb #2808
win32/freshclam: fix crash on empty TXT record
2011-05-11 22:02:11 +03:00
Török Edvin
61f12d010e sigtool: don't sleep for unsigned build 2011-05-11 12:50:46 +03:00
Tomasz Kojm
cdddd014ff sigtool: add support for building unsigned dbs (--unsigned)
libclamav: handle unsigned db files (.cud)
2011-05-10 21:29:49 +02:00
Török Edvin
82d20473a5 bb #2488 2011-05-07 18:27:43 +03:00
Török Edvin
4427b54611 Add missing files 2011-05-07 18:24:59 +03:00
Török Edvin
7606789f91 Better detection for encrypted PDFs (bb #2448)
If --block-encrypted is specified then we can detect Encrypted.PDF if:
 - PDF is encrypted with R 2,3,4 or 5
 - PDF is not displayable without specifying a password

If PDF is encrypted, but is displayable without specifying a password, then it
is not detected as Encrypted.PDF.
2011-05-07 18:14:58 +03:00
Török Edvin
8f66206b67 fix 'make distcheck' 2011-05-06 22:16:38 +03:00
Török Edvin
4eb14247ae win32 typo 2011-05-06 21:44:30 +03:00
Török Edvin
b6187b6330 attempt to fix win32 build 2011-05-06 21:26:55 +03:00
Török Edvin
0c79cc5529 Support building with external LLVM 2.9, and drop support for building with external 2.8
Internal version is an LLVM 2.8 with 2 patches backported from LLVM 2.9 to fix a
crash on AVX chips.
So drop support for building with external LLVM 2.8, and add support for
building with external LLVM 2.9 instead.

Caveat:
 stack smashing protection is broken on LLVM 2.9 so it is disabled

Example on Debian:
apt-get install llvm-2.9-dev
./configure --enable-llvm --with-system-llvm=/usr/bin/llvm-config-2.9
2011-05-06 16:16:33 +03:00
Török Edvin
0e34854a7b add clambc manpage (bb #2551) 2011-05-06 14:37:13 +03:00
Tomasz Kojm
0f4639ec76 clamd: log request ip address for instream scans #bb2592
On behalf of acab
2011-05-05 16:15:57 -07:00
Török Edvin
7820abe406 LLVM: don't assert on AVX chips (cherry-pick from upstream), bb #2763
LLVM was claiming it cannot lower MEMBARRIER on chips with AVX, because
some debugging code was left behind that deactivated SSE2, even though these
chips do have SSE2.
Also regenerate the codegen tables.

Author: Nate Begeman <natebegeman@mac.com>
Date:   Fri Dec 3 21:54:14 2010 +0000

    Remove SSE1-4 disable when AVX is enabled.  While this may be useful for development,
    it completely breaks scalar fp in xmm regs when AVX is enabled.

    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120843 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-04 14:11:08 +03:00
Tomasz Kojm
1f95d81c17 sigtool: properly normalize html files (bb#2764) 2011-05-03 22:52:51 -07:00
Tomasz Kojm
1a697e4b2e sigtool/sigtool.c: fix formatting of hash dbs (bb#2765) 2011-05-03 16:16:53 -07:00
Török Edvin
0e3d9af46f remove comma 2011-05-03 21:01:09 +03:00
Török Edvin
c7e3bf49b8 LLVM: cherry-pick upstream debug crashfix
This fixes a crash when running clambc --debug

From: Duncan Sands <baldrick@free.fr>
Date: Sat, 20 Nov 2010 11:25:00 +0000
Subject: [PATCH] On X86, MEMBARRIER, MFENCE, SFENCE, LFENCE are not target
 memory intrinsics, so don't claim they are.  They are
 allocated using DAG.getNode, so attempts to access
 MemSDNode fields results in reading off the end of the
 allocated memory.  This fixes crashes with "llc -debug" due
 to debug code trying to print MemSDNode fields for these
 barrier nodes (since the crashes are not deterministic, use
 valgrind to see this).  Add some nasty checking to try to
 catch this kind of thing in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119901 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-03 20:47:35 +03:00
Tomasz Kojm
a3a0367b38 freshclam: add mirror statistics mechanism 2011-04-27 15:09:05 +02:00
Tomasz Kojm
becb3508dc fix some unlinks() for win32 2011-04-20 14:56:45 +02:00
Tomasz Kojm
366503ff67 cosmetics 2011-04-20 14:23:50 +02:00
Tomasz Kojm
7362a9cfa4 respect AlgorithmicDetection 2011-04-18 19:06:43 +02:00
aCaB
8ab47ebe4e win32: UTF #6 - clamd proto 2011-04-18 17:25:23 +02:00
aCaB
c68a45e127 win32: UTF #5 - globbing 2011-04-17 16:11:04 +02:00
aCaB
4b6af09eba win32: UTF #4 hook access(), fix clamd 2011-04-17 13:08:11 +02:00
aCaB
254cecefad win32: UTF8 #3 - make mprintf UTF8 aware 2011-04-16 18:58:00 +02:00
aCaB
b28d6bf0c6 win32: UTF8 #2 - make readdir UTF8 aware 2011-04-16 18:54:59 +02:00
aCaB
d564f5d5cf win32: UTF8 #1 - fix make entry and uncpath UTF8 aware 2011-04-16 18:54:38 +02:00
Török Edvin
6bdb7ebf4f reverted automake subdir-objects because it broke win32 files. 2011-04-16 17:42:47 +03:00
Török Edvin
60ba0f8656 Revert "build system: use automake subdir-objects (bb #2369)"
This reverts commit 321488a958.

Conflicts:

	win32/clamav-config.h
2011-04-16 17:41:57 +03:00
Török Edvin
d1e76ba1ac Revert "build system: fix clamav-milter makefile"
This reverts commit 20b7235a9e.

Conflicts:

	win32/clamav-config.h
2011-04-16 17:41:31 +03:00
Török Edvin
476d85708f Revert "bb #2719"
This reverts commit 93e44700c2.
2011-04-16 17:41:09 +03:00
Török Edvin
3b35bf2525 c4w: disable perf logging when verbose logging is off
bb #2725.
2011-04-16 12:50:49 +03:00