update copyrights and stick more files to GPLv2; move and add more credits to the AUTHORS file; add COPYING.BSD

git-svn: trunk@3749
remotes/push_mirror/metadata
Tomasz Kojm 18 years ago
parent 719a2bc895
commit 2023340a41
  1. 54
      AUTHORS
  2. 32
      COPYING.BSD
  3. 5
      ChangeLog
  4. 2
      Makefile.am
  5. 2
      Makefile.in
  6. 6
      libclamav/aspack.c
  7. 6
      libclamav/aspack.h
  8. 5
      libclamav/autoit.c
  9. 5
      libclamav/autoit.h
  10. 9
      libclamav/binhex.c
  11. 9
      libclamav/binhex.h
  12. 11
      libclamav/blob.c
  13. 9
      libclamav/blob.h
  14. 6
      libclamav/cab.c
  15. 3
      libclamav/cab.h
  16. 9
      libclamav/chmunpack.c
  17. 11
      libclamav/chmunpack.h
  18. 4
      libclamav/clamav.h
  19. 4
      libclamav/cltypes.h
  20. 4
      libclamav/cvd.c
  21. 4
      libclamav/cvd.h
  22. 4
      libclamav/dconf.c
  23. 4
      libclamav/dconf.h
  24. 4
      libclamav/dsig.c
  25. 4
      libclamav/dsig.h
  26. 4
      libclamav/elf.c
  27. 5
      libclamav/elf.h
  28. 5
      libclamav/encoding_aliases.h
  29. 7
      libclamav/entconv.c
  30. 7
      libclamav/entconv.h
  31. 21
      libclamav/entitylist.h
  32. 9
      libclamav/execs.h
  33. 5
      libclamav/explode.c
  34. 5
      libclamav/explode.h
  35. 6
      libclamav/filetypes.c
  36. 6
      libclamav/filetypes.h
  37. 6
      libclamav/filetypes_int.h
  38. 4
      libclamav/fsg.c
  39. 4
      libclamav/fsg.h
  40. 11
      libclamav/hashtab.c
  41. 7
      libclamav/hashtab.h
  42. 9
      libclamav/htmlnorm.c
  43. 11
      libclamav/htmlnorm.h
  44. 7
      libclamav/iana_tld.h
  45. 9
      libclamav/line.c
  46. 9
      libclamav/line.h
  47. 5
      libclamav/lzma_iface.c
  48. 5
      libclamav/lzma_iface.h
  49. 5
      libclamav/matcher-ac.c
  50. 5
      libclamav/matcher-ac.h
  51. 4
      libclamav/matcher-bm.c
  52. 4
      libclamav/matcher-bm.h
  53. 5
      libclamav/matcher.c
  54. 5
      libclamav/matcher.h
  55. 39
      libclamav/mbox.c
  56. 9
      libclamav/mbox.h
  57. 15
      libclamav/message.c
  58. 9
      libclamav/message.h
  59. 9
      libclamav/mew.c
  60. 9
      libclamav/mew.h
  61. 6
      libclamav/msexpand.c
  62. 6
      libclamav/msexpand.h
  63. 4
      libclamav/nsis/nulsft.c
  64. 4
      libclamav/nsis/nulsft.h
  65. 11
      libclamav/ole2_extract.c
  66. 11
      libclamav/ole2_extract.h
  67. 5
      libclamav/others.c
  68. 5
      libclamav/others.h
  69. 5
      libclamav/packlibs.c
  70. 4
      libclamav/packlibs.h
  71. 12
      libclamav/pdf.c
  72. 12
      libclamav/pdf.h
  73. 10
      libclamav/pe.c
  74. 10
      libclamav/pe.h
  75. 4
      libclamav/petite.c
  76. 4
      libclamav/petite.h
  77. 7
      libclamav/phish_domaincheck_db.c
  78. 7
      libclamav/phish_domaincheck_db.h
  79. 7
      libclamav/phish_whitelist.c
  80. 7
      libclamav/phish_whitelist.h
  81. 7
      libclamav/phishcheck.c
  82. 6
      libclamav/phishcheck.h
  83. 5
      libclamav/readdb.c
  84. 4
      libclamav/readdb.h
  85. 4
      libclamav/rebuildpe.c
  86. 4
      libclamav/rebuildpe.h
  87. 7
      libclamav/regex_list.c
  88. 7
      libclamav/regex_list.h
  89. 8
      libclamav/rtf.c
  90. 6
      libclamav/rtf.h
  91. 5
      libclamav/scanners.c
  92. 5
      libclamav/scanners.h
  93. 5
      libclamav/sis.c
  94. 5
      libclamav/sis.h
  95. 9
      libclamav/special.c
  96. 9
      libclamav/special.h
  97. 4
      libclamav/spin.c
  98. 4
      libclamav/spin.h
  99. 10
      libclamav/str.c
  100. 4
      libclamav/str.h
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,3 +1,57 @@
The ClamAV Team - http://www.clamav.net/team
aCaB <acab at*clamav*net>
Aeriana <aeriana at*clamav*net>
Mike Cathey <mike at*clamav*net>
Christoph Cordes <ccordes at*clamav*net>
Diego d’Ambra <diego at*clamav*net>
Andreas Faust <afaust at*clamav*net>
Luca Gibelli <luca at*clamav*net>
Nigel Horne <njh at*clamav*net>
Arnaud Jacques <arnaud at*clamav*net>
Tomasz Kojm <tkojm at*clamav*net>
Tomasz Papszun <tomek at*clamav*net>
Sven Strickroth <sven at*clamav*net>
Török Edvin <edwin at*clamav*net>
Trog <trog at*clamav*net>
Please see the ChangeLog and clamdoc.pdf for the full list of contributors.
-------------------------------------------------------------------------------
libclamav credits:
cab.c: The code uses Stuart Caie's libmspack to handle cabinet files
cvd.c, untar.c: The untar code is based on a public domain minitar utility
by Charles G. Waldman
dsig.c: The idea of number encoding comes from yyyRSA by Erik Thiele
elf.c: The header structures were based upon "ELF: Executable and Linkable
Format, Portable Formats Specification, Version 1.1"
explode.c: Written from scratch based on specs from PKWARE:
http://www.pkware.com/documents/casestudies/APPNOTE.TXT
hashtab.c: hash32shift() is an implementation of Thomas Wang's 32-bit integer
hash function: http://www.cris.com/~Ttwang/tech/inthash.htm
htmlnorm.c: The ScrEnc decoder was initially based upon an analysis by
Andreas Marx
inflate64.*,inffixed.h: This files contain code from zlib library v.1.2.3 with
modifications by Alberto Wu (see COPYING.zlib)
is_tar.*: The file contains a public domain code from John Gilmore
lzma/*: The files contain an implementation of the LZMA algorithm from
Igor Pavlov (see COPYING.lzma)
md5.*: The files contain a public domain code from Solar Designer
msexpand.c: Decompression scheme by M. Winterhoff
nsis/*: The nsis extractor includes the zlib code from Jean-loup Gailly and
Mark Adler (see COPYING.zlib) and libbzip2 code from Julian Seward
(see COPYING.bzip2)
ole2_extract.c, vba_extract.c: Some ideas and algorithms were based upon
OpenOffice and libgsf
pe.h: The header structures were based upon a PE format analysis by
B. Luevelsmeyer
regex/*: The files came from OpenBSD (see COPYING.BSD)
str.c: cli_strcasestr() contains a public domain code from
http://unixpapa.com/incnote/string.html
tnef.c: The algorithm was based on kdepim/ktnef/lib/ktnefparser.cpp from KDE
mbox.c: Some ideas came from Stephen White <stephen@earth.li>,
Michael Dankov <misha@btrc.ru>, Gianluigi Tiesi <sherpya@netfarm.it>,
Everton da Silva Marques, Thomas Lamy <Thomas.Lamy@in-online.net>,
James Stevens <James@kyzo.com>

@ -0,0 +1,32 @@
The code in libclamav/regex/ is derived from OpenBSD's libc/regex, original license follows:
Copyright (c) 1992, 1993, 1994 Henry Spencer.
Copyright (c) 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
This code is derived from software contributed to Berkeley by
Henry Spencer.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

@ -1,3 +1,8 @@
Wed Apr 2 16:34:43 CEST 2008 (tk)
----------------------------------
* libclamav: update copyrights and stick more files to GPLv2; move and add
more credits to the AUTHORS file; add COPYING.BSD
Wed Apr 2 12:30:06 CEST 2008 (acab)
------------------------------------
* libclamav: check return codes from syscalls (bb#384) - unlink

@ -18,7 +18,7 @@
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = libclamunrar libclamunrar_iface libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test unit_tests
EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib
EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib COPYING.BSD
bin_SCRIPTS=clamav-config

@ -248,7 +248,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = libclamunrar libclamunrar_iface libclamav clamscan clamd clamdscan freshclam sigtool clamconf database docs etc clamav-milter test unit_tests
EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib
EXTRA_DIST = FAQ examples BUGS shared libclamav.pc.in UPGRADE COPYING.bzip2 COPYING.lzma COPYING.unrar COPYING.LGPL COPYING.file COPYING.zlib COPYING.BSD
bin_SCRIPTS = clamav-config
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libclamav.pc

@ -1,7 +1,7 @@
/*
* Copyright (C) 2007 Amaketos, LLC
* Authors: Luciano Giuseppe 'Pnluck' <pnluck@virgilio.it>
* aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Luciano Giuseppe 'Pnluck', Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,7 @@
/*
* Copyright (C) 2007 Amaketos, LLC
* Authors: Luciano Giuseppe 'Pnluck' <pnluck@virgilio.it>
* aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Luciano Giuseppe 'Pnluck', Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,6 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,6 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2002 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -16,6 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: blob.c,v 1.64 2007/02/12 22:25:14 njh Exp $";
#if HAVE_CONFIG_H
@ -660,7 +662,6 @@ sanitiseName(char *name)
#ifdef C_DARWIN
*name &= '\177';
#endif
/* Also check for tab - "Heinz Martin" <Martin@hemag.ch> */
#if defined(MSDOS) || defined(C_OS2)
/*
* Don't take it from this that ClamAV supports DOS, it doesn't

@ -1,10 +1,11 @@
/*
* Copyright (C) 2002 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,11 +1,7 @@
/*
* Copyright (C) 2007-2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
*
* Copyright (C) 2006 Tomasz Kojm <tkojm@clamav.net>
*
* This code is based on the work of Stuart Caie and the official
* specification.
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007-2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
*
* Copyright (C) 2006 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,12 +1,13 @@
/*
* Extract component parts of MS CHM files
*
* Copyright (C) 2004-2007 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,12 +1,13 @@
/*
* Extract component parts of MS CHM files
*
* Copyright (C) 2004 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -18,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __CHM_UNPACK_H
#define __CHM_UNPACK_H

@ -1,5 +1,7 @@
/*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,7 @@
/*
* Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Based on zzip-stdint.h
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,7 @@
/*
* Copyright (C) 2003 - 2006 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* untgz() is based on public domain minitar utility by Charles G. Waldman
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2003 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2007 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2007 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,7 @@
/*
* Copyright (C) 2003 - 2006 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Number encoding rutines are based on yyyRSA by Erik Thiele
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2003 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2005 - 2006 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2005 - 2006 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Header structures based on ELF: Executable and Linkable Format, Portable
* Formats Specification, Version 1.1
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,9 @@
/*
* HTML Entity & Encoding normalization.
*
* Copyright (C) 2006 - 2008 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#include <hashtab.h>

@ -1,10 +1,12 @@
/*
* HTML Entity & Encoding normalization.
*
* Copyright (C) 2006 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#include "clamav-config.h"

@ -1,10 +1,12 @@
/*
* HTML Entity & Encoding normalization.
*
* Copyright (C) 2006 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#ifndef _ENTITIES_H

@ -1,4 +1,23 @@
/* TODO: include GPL headers */
/*
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#include <hashtab.h>
static struct element entities_htable_elements[] = {
{"rsaquo", 8250, 6},

@ -1,10 +1,11 @@
/*
* Copyright (C) 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,6 +1,7 @@
/*
* Copyright (C) 2008 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,6 +1,7 @@
/*
* Copyright (C) 2008 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,9 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net>
* With enhancements from Thomas Lamy <Thomas.Lamy@in-online.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,9 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net>
* With enhancements from Thomas Lamy <Thomas.Lamy@in-online.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,9 @@
/*
* Static filetype data for use when daily.ftm is not available.
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
*
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,12 @@
/*
* HTML Entity & Encoding normalization.
* Hash-table and -set data structures.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#include <clamav-config.h>
@ -186,8 +187,6 @@ int hashtab_init(struct hashtable *s,size_t capacity)
static inline uint32_t hash32shift(uint32_t key)
{
/* Thomas Wang's 32-bit integer hash function.
* http://www.cris.com/~Ttwang/tech/inthash.htm */
key = ~key + (key << 15);
key = key ^ (key >> 12);
key = key + (key << 2);

@ -1,10 +1,12 @@
/*
* HTML Entity & Encoding normalization.
*
* Copyright (C) 2006 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#include <stdio.h>

@ -2,14 +2,13 @@
* Normalise HTML text.
* Decode MS Script Encoder protection.
*
* Copyright (C) 2004 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* The ScrEnc decoder was initially based upon an analysis by Andreas Marx.
* Authors: Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004 Trog <trog@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -16,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __HTMLNORM_H
#define __HTMLNORM_H

@ -1,10 +1,12 @@
/*
* Phishing module: iana tld list.
*
* Copyright (C) 2006 Torok Edvin <edwintorok@gmail.com>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#ifndef IANA_TLD_H

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,6 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,6 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,11 @@
/*
* Copyright (C) 2002-2006 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -16,6 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: mbox.c,v 1.381 2007/02/15 12:26:44 njh Exp $";
#ifdef _MSC_VER
@ -2174,10 +2176,6 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re
if(t_line == NULL) {
cli_dbgmsg("Multipart MIME message contains no boundary lines (%s)\n",
boundary);
/*
* Free added by Thomas Lamy
* <Thomas.Lamy@in-online.net>
*/
free((char *)boundary);
mimeType = NOMIME;
/*
@ -2593,7 +2591,6 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re
}
/*
* Fixed based on an idea from Stephen White <stephen@earth.li>
* The message is confused about the difference
* between alternative and related. Badtrans.B
* suffers from this problem.
@ -2602,20 +2599,6 @@ parseEmailBody(message *messageIn, text *textIn, mbox_ctx *mctx, unsigned int re
* Content-Type: multipart/related;
* type="multipart/alternative"
*/
/*
* Changed to always fall through based on
* an idea from Michael Dankov <misha@btrc.ru>
* that some viruses are completely confused
* about the difference between related
* and mixed
*/
/*cptr = messageFindArgument(mainMessage, "type");
if(cptr == NULL)
break;
isAlternative = (bool)(strcasecmp(cptr, "multipart/alternative") == 0);
free((char *)cptr);
if(!isAlternative)
break;*/
case DIGEST:
/*
* According to section 5.1.5 RFC2046, the
@ -3424,12 +3407,6 @@ parseMimeHeader(message *m, const char *cmd, const table_t *rfc821Table, const c
int set = messageSetMimeType(m, strtok(s, "/"));
#endif
/*
* Stephen White <stephen@earth.li>
* Some clients put space after
* the mime type but before
* the ;
*/
#ifdef CL_THREAD_SAFE
s = strtok_r(NULL, ";", &strptr);
#else
@ -4144,8 +4121,6 @@ do_checkURLs(mbox_ctx *mctx, tag_arguments_t *hrefs)
#if defined(FOLLOWURLS) && (FOLLOWURLS > 0)
/*
* Includes some Win32 patches by Gianluigi Tiesi <sherpya@netfarm.it>
*
* FIXME: Often WMF exploits work by sending people an email directing them
* to a page which displays a picture containing the exploit. This is not
* currently found, since only the HTML on the referred page is downloaded.
@ -4532,8 +4507,6 @@ my_r_gethostbyname(const char *hostname, struct hostent *hp, char *buf, size_t l
}
/*
* Non-blocking connect, based on an idea by Everton da Silva Marques
* <everton.marques@gmail.com>
* FIXME: There are lots of copies of this code :-(
*/
static int

@ -1,10 +1,11 @@
/*
* Copyright (C) 2002 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2002-2006 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -271,8 +272,6 @@ messageSetMimeType(message *mess, const char *type)
mess->mimeType = MEXTENSION;
else {
/*
* Based on a suggestion by James Stevens
* <James@kyzo.com>
* Force scanning of strange messages
*/
if(strcasecmp(type, "plain") == 0) {
@ -674,7 +673,6 @@ messageFindArgument(const message *m, const char *variable)
return NULL;
/*
* Thomas Lamy <Thomas.Lamy@in-online.net>:
* fix un-quoting of boundary strings from
* header, occurs if boundary was given as
* 'boundary="_Test_";'
@ -1188,7 +1186,6 @@ messageExport(message *m, const char *dir, void *(*create)(void), void (*destroy
blob *tmp;
/*
* Table look up by Thomas Lamy <Thomas.Lamy@in-online.net>
* HQX conversion table - illegal chars are 0xff
*/
const unsigned char hqxtbl[] = {
@ -2092,8 +2089,6 @@ decodeLine(message *m, encoding_type et, const char *line, unsigned char *buf, s
}
/*
* Fix by Torok Edvin
* <edwintorok@gmail.com>
* Handle messages that use a broken
* quoted-printable encoding of
* href=\"http://, instead of =3D

@ -1,10 +1,11 @@
/*
* Copyright (C) 2002 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2006 Michal 'GiM' Spadlinski http://gim.org.pl/
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Michal 'GiM' Spadlinski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2006 Michal 'GiM' Spadlinski http://gim.org.pl/
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Michal 'GiM' Spadlinski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,7 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Credits: Decompression scheme by M. Winterhoff
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Credits: Decompression scheme by M. Winterhoff
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2007 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2007 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,14 +1,13 @@
/*
* Extract component parts of OLE2 files (e.g. MS Office Documents)
*
* Copyright (C) 2004-2007 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This code is based on the OpenOffice and libgsf sources.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,14 +1,13 @@
/*
* Extract component parts of OLE2 files (e.g. MS Office Documents)
*
* Copyright (C) 2004 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This code is based on the OpenOffice and libgsf sources.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 1999 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm, Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 1999 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2006 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu, Michal 'GiM' Spadlinski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@ -16,7 +18,6 @@
* MA 02110-1301, USA.
*/
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif

@ -1,5 +1,7 @@
/*
* Copyright (C) 2005 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu, Michal 'GiM' Spadlinski
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,11 @@
/*
* Copyright (C) 2005-2007 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -13,7 +14,8 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
* TODO: Embedded fonts
* TODO: Predictor image handling

@ -1,10 +1,11 @@
/*
* Copyright (C) 2005 Nigel Horne <njh@bandsman.co.uk>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Nigel Horne
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -16,10 +17,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __PDF_H
#define __PDF_H
#include "others.h"
int cli_pdf(const char *dir, int desc, cli_ctx *ctx);
#endif

@ -1,11 +1,11 @@
/*
* Copyright (C) 2004 - 2007 Tomasz Kojm <tkojm@clamav.net>
* aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu, Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,13 +1,11 @@
/*
* Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Implementation (header structures) based on the PE format description
* by B. Luevelsmeyer
* Authors: Alberto Wu, Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,12 @@
/*
* Phishing module: domain list implementation.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#if HAVE_CONFIG_H

@ -1,10 +1,12 @@
/*
* Phishing module: domain list implementation.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/

@ -1,10 +1,12 @@
/*
* Phishing module: whitelist implementation.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#if HAVE_CONFIG_H

@ -1,10 +1,12 @@
/*
* Phishing module: whitelist implementation.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/

@ -1,10 +1,12 @@
/*
* Detect phishing, based on URL spoofing detection.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#if HAVE_CONFIG_H

@ -1,8 +1,10 @@
/*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2004 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,12 @@
/*
* Match a string against a list of patterns/regexes.
*
* Copyright (C) 2006-2007 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/
#if HAVE_CONFIG_H

@ -1,10 +1,12 @@
/*
* Match a string against a list of patterns/regexes.
*
* Copyright (C) 2006 Török Edvin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
@ -16,7 +18,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*
*/

@ -1,8 +1,12 @@
/*
* Copyright (C) 2006 Török Edwin <edwin@clamav.net>
* Extract embedded objects from RTF files.
*
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,

@ -1,8 +1,10 @@
/*
* Copyright (C) 2006 Török Edwin <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2007 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,8 +1,7 @@
/*
* Copyright (C) 2007 - 2008 Sourcefire, Inc.
* Author: Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Copyright (C) 2002 - 2004 Tomasz Kojm <tkojm@clamav.net>
* Authors: Tomasz Kojm
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,6 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,6 +1,7 @@
/*
* Copyright (C) 2007 Sourcefire Inc.
* Author: aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004-2005 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,10 +1,11 @@
/*
* Copyright (C) 2004 trog@uncon.org
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Trog
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of

@ -1,5 +1,7 @@
/*
* Copyright (C) 2005 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,5 +1,7 @@
/*
* Copyright (C) 2005 aCaB <acab@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Alberto Wu
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

@ -1,7 +1,7 @@
/*
* Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net>
* cli_strrcpy(): Copyright (C) 2002 Nigel Horne <njh@bandsman.co.uk>
* cli_strtokenize(): Copyright (C) 2007 Edwin Torok <edwin@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm, Nigel Horne, Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@ -400,10 +400,6 @@ char *cli_strrcpy(char *dest, const char *source) /* by NJH */
#ifndef HAVE_STRCASESTR
const char* cli_strcasestr(const char* a, const char *b)
{
/*
* From http://unixpapa.com/incnote/string.html, which has this notice:
* All of the C code on this page is public domain and may be used without concern for licenses. Some was contributed by Dan Cross.
*/
size_t l;
char f[3];
const size_t strlen_a = strlen(a);

@ -1,5 +1,7 @@
/*
* Copyright (C) 2002 - 2005 Tomasz Kojm <tkojm@clamav.net>
* Copyright (C) 2007-2008 Sourcefire, Inc.
*
* Authors: Tomasz Kojm, Nigel Horne, Török Edvin
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save