chatsiri | 10 May 09:20
Favicon
Gravatar

Test suit cannot fork process for debugging with clamav.

Hello All,

       I try to debugging test suite of  Clamav. Test suite writes for 
fork process in order to debug code. First step, Program started by 
libtools that declare the gdb debug tool. After run programs. It's 
represents error as below. I  debug "fork_setup()" function in the main 
function but show error SIGSEGV. It's show segmentation fault. How i can 
debug a source code in another way?  That's is source code of test suite 
for fork process[https://gist.github.com/2651305].

$ ./libtool --mode=execute gdb -q 
~/Clamav/unit_tests_checkfs/tests/.libs/check_cli_load
Reading symbols from 
/san01/home/chatsiri/workspacecpp/Clamav/unit_tests_checkfs/tests/.libs/check_cli_load...done.
(gdb) b 179
Breakpoint 1 at 0x401147: file check_cli_load.c, line 179.
(gdb) run check_cli_load
Starting program: 
/san01/home/chatsiri/workspacecpp/Clamav/unit_tests_checkfs/tests/.libs/check_cli_load 
check_cli_load
[Thread debugging using libthread_db enabled]

Breakpoint 1, main () at check_cli_load.c:180
warning: Source file is more recent than executable.
180         fork_setup();
(gdb) n
Running suite(s): matchers

Program received signal SIGSEGV, Segmentation fault.
0x000000392d879cb7 in strncmp () from /lib64/libc.so.6
(Continue reading)

chatsiri | 1 May 07:09
Favicon
Gravatar

Why Clamav programs add certificate type x509?

Hello All,

     I debug crtmgr for monitoring scan virus step, but found clamav add 
certificate to programs. Why programs add certificate type x509?. My 
view, It's identify signature from database extension .cvd.  I copy 
logging to e-mail. You should see below.

LibClamAV debug: crtmgr_add: added cert 
s:29dbd4b88f785f33419287e1af4650e177a46fc0 
i:cacacacacacacacacacacacacacacacacacacaca

n:C95C599EF21B8A0114B410DF0440DBE357AF6A45408F840C0BD133D9D911CFEE02581F25F72AA84405AAEC031F787F9E93B99A00AA237DD6AC85A26345C77227CCF44CC67571D239EF4F42F075DF0A90C68E206F980FF8AC235F702936A4C986E7B19A20CB53A585E73DBE7D9AFE244533DC7615ED0FA271644C652E816845A7 
e:10001 0->2147483647 cert code

Thank you,
Chatsiri Rattana
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Elia Pinto | 16 Apr 18:15
Picon

[PATCH] Add an autogen.sh for buildstrapping the build system

This patch add a simple autogen.sh for buildstrapping
the gnu build system. It also check the minimun version
of the gnu buildtool necessary for clamav.

Signed-off-by: Elia Pinto <gitter.spiros <at> gmail.com>
---
 Makefile.am   |    2 +-
 README-prereq |   10 +++
 autogen.sh    |  200 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 211 insertions(+), 1 deletions(-)
 create mode 100644 README-prereq
 create mode 100755 autogen.sh

diff --git a/Makefile.am b/Makefile.am
index 3970e2e..b3c02a5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@
 ACLOCAL_AMFLAGS=-I m4

 SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc
clamav-milter test clamdtop clambc unit_tests
-EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am
libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL
COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256
platform.h.in clamdscan/clamdscan.map win32
+EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am
libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL
COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256
platform.h.in clamdscan/clamdscan.map win32 README-prereq
(Continue reading)

Elia Pinto | 16 Apr 17:59
Picon

[PATCH] Added a autogen.sh for buildstrap the build system

This patch add a simple autogen.sh for buildstrap
the gnu build system. It also check the minimun version
of the gnu buildtool necessary for clamav.

Signed-off-by: Elia Pinto <gitter.spiros <at> gmail.com>
---
 Makefile.am |    2 +-
 autogen.sh  |  200 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 201 insertions(+), 1 deletions(-)
 create mode 100755 autogen.sh

diff --git a/Makefile.am b/Makefile.am
index 3970e2e..b3c02a5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@
 ACLOCAL_AMFLAGS=-I m4

 SUBDIRS = libltdl libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc
clamav-milter test clamdtop clambc unit_tests
-EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am
libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL
COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256
platform.h.in clamdscan/clamdscan.map win32
+EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in libclamunrar_iface/Makefile.am
libclamunrar_iface/Makefile.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL
COPYING.llvm COPYING.file COPYING.zlib COPYING.getopt COPYING.regex COPYING.sha256
platform.h.in clamdscan/clamdscan.map win32 README-prereq

 bin_SCRIPTS=clamav-config
(Continue reading)

Elia Pinto | 16 Apr 16:56
Picon

[PATCH] Add CL_CFLAGS and CL_LDFLAGS macro

These autoconf macros permit to enable a particular
compiler option in a portable way, testing if
the particular compiler version support it and
ignoring the option if it is not supported.

These are derived from gnulib warnings.m4 macro,
but do the check in a little different way.

Signed-off-by: Elia Pinto <gitter.spiros <at> gmail.com>
---
 configure.in    |   13 ++++++++++++-
 m4/acinclude.m4 |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 9ea805c..0cf03da 100644
--- a/configure.in
+++ b/configure.in
@@ -1568,9 +1568,20 @@ WERR_CFLAGS=
 WERR_CFLAGS_MILTER=
 if test "x$enable_distcheckwerror" = "xyes"; then
     if test "$distcheck_enable_flags" = "1"; then
-	WERR_COMMON="-Wno-pointer-sign -Werror-implicit-function-declaration -Werror -Wextra -Wall
-Wno-error=bad-function-cast -Wbad-function-cast -Wcast-align -Wendif-labels -Wfloat-equal
-Wformat=2 -Wformat-security -Wmissing-declarations -Wmissing-prototypes
-Wno-error=missing-prototypes -Wnested-externs -Wno-error=nested-externs -Wpointer-arith
-Wstrict-prototypes -Wno-error=strict-prototypes -Wno-switch -Wno-switch-enum -Wundef
-Wstrict-overflow=1 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing
-Wdeclaration-after-statement -Waggregate-return -Wmissing-format-attribute
-Wno-error=missing-format-attribute -Wno-error=type-limits
(Continue reading)

rajeshwari b | 10 Apr 14:36
Picon

Using Clamav antivirus engine

Hi all,
I am a first timer regarding using clamav antivirus engine. I presently
use TDM-GCC compiler -Msys for my project. I also have Msys-git installed.
Pl let me know the packages that needs to be installed to solve
the dependencies of clamav, when using TDM-Msys as compiler. Pl let me know
the procedure for installing the same. Kindly help.
Rgds,
Rajeshwari
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Vikram Hegde | 9 Apr 06:23
Picon
Gravatar

I would like to contribute as a developer to the Clam-AV project

Hi,

I am interested in contributing as a developer to the clam-av project.

Some background about me:  I have over 14 years of professional (industry)
kernel development experience in Unix like operating systems including
Solaris and FreeBSD. I was a member of the Solaris kernel team at Sun for
over 12 years. I have a lot of experience debugging multi-threaded kernel
code with access only to assembly code. I have very good knowledge of Unix
kernel internals, C and assembly and very strong Unix user-level programming
as well, including Posix threads, POSIX API, generic UNIX API. I have
developed kernel drivers on both Solaris and FreeBSD, system libraries and
utilities on Solaris.

I am willing to work hard and start at the bottom (I.e. contributing bug
fixes etc.)  I am willing to work outside my area of prior experience (for
example Windows or Mac development)

Could you please let me know how I can go about becoming a contributor.

Thanks,
Vikram

Attachment (smime.p7s): application/pkcs7-signature, 2796 bytes
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Jeremy Neptune | 8 Apr 22:51
Picon

Flashback

Does ClamAV detect the Flashback malware? I have an old Mac (running
10.4.11) and running clamxav.

Am I protected?

If this is the wrong list, I'm sorry, and please direct me to the correct one.
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Tomasz Kojm | 4 Apr 17:50
Favicon

Re: Can I join the Mac dev of clamAV

On Wed, 4 Apr 2012 22:58:01 +0800 boyd yang <boyd.yang <at> gmail.com> wrote:
> Hi Guys,
> 
> Cay I join the Mac Dev of clamav?
> How can I know something about Mac dev of clamav?

Hi,

are you a mac developer? Have you ever played with ClamAV on OS X?

Regards,

--

-- 
   oo    .....         Tomasz Kojm <tkojm <at> clamav.net>
  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
       //\   /\              Wed Apr  4 17:48:26 CEST 2012
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

boyd yang | 4 Apr 16:58
Picon

Can I join the Mac dev of clamAV

Hi Guys,

Cay I join the Mac Dev of clamav?
How can I know something about Mac dev of clamav?

Thanks!
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Alexandre Dias | 7 Mar 01:21
Picon
Gravatar

Question about wildcards ?? and {n} in signatures

Hello,

I am doing my Msc thesis work in pattern matching, and I am using
ClamAV's signature database.

I've got a question about two specific wildcards that are stated in
the signatures.pdf file (titled "Creating Signatures for ClamAV").

According to the document, the wildcard "{n}" states that n bytes can
be matched. Also, the wildcard "??" states that any one byte can be
matched. I have found some "{1}" wildcards in the database. I assume
that by saying "match n bytes", the meaning is that we can match any n
bytes. If that is the case, what is the difference between "??" and
"{1}" ? Or am I wrong, and {n} means "match the previous byte, n
times"?

Thank you for your time.

Best regards,

-Alexandre Dias
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Gmane