mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Update copyright dates for 2021
Also fixes up clang-format.
This commit is contained in:
parent
f4ef7b895e
commit
b9ca6ea103
400 changed files with 462 additions and 462 deletions
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
cmake_minimum_required( VERSION 3.16 ) # For file(GET_RUNTIME_DEPENDENCIES)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
# The clamav-milter executable.
|
||||
add_executable( clamav-milter )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2003-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
@ -96,7 +96,7 @@ int main(int argc, char **argv)
|
|||
|
||||
sigset_t sigset;
|
||||
struct sigaction act;
|
||||
const char * user_name = NULL;
|
||||
const char *user_name = NULL;
|
||||
|
||||
cl_initialize_crypto();
|
||||
|
||||
|
@ -122,7 +122,7 @@ int main(int argc, char **argv)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Milter Mail Scanner %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" %s [-c <config-file>]\n\n", argv[0]);
|
||||
printf("\n");
|
||||
|
@ -158,7 +158,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
free(pt);
|
||||
|
||||
if ((opt = optget(opts, "User"))->enabled){
|
||||
if ((opt = optget(opts, "User"))->enabled) {
|
||||
user_name = opt->strarg;
|
||||
}
|
||||
|
||||
|
@ -419,7 +419,7 @@ int main(int argc, char **argv)
|
|||
if ((opt = optget(opts, "PidFile"))->enabled) {
|
||||
FILE *fd;
|
||||
mode_t old_umask = umask(0022);
|
||||
int err = 0;
|
||||
int err = 0;
|
||||
|
||||
if ((fd = fopen(opt->strarg, "w")) == NULL) {
|
||||
logg("!Can't save PID in file %s\n", opt->strarg);
|
||||
|
@ -434,14 +434,14 @@ int main(int argc, char **argv)
|
|||
umask(old_umask);
|
||||
|
||||
#ifndef _WIN32
|
||||
if (0 == err){
|
||||
if (0 == err) {
|
||||
/*If the file has already been created by a different user, it will just be
|
||||
* rewritten by us, but not change the ownership, so do that explicitly.
|
||||
*/
|
||||
if (0 == geteuid()){
|
||||
struct passwd * pw = getpwuid(0);
|
||||
int ret = lchown(opt->strarg, pw->pw_uid, pw->pw_gid);
|
||||
if (ret){
|
||||
if (0 == geteuid()) {
|
||||
struct passwd *pw = getpwuid(0);
|
||||
int ret = lchown(opt->strarg, pw->pw_uid, pw->pw_gid);
|
||||
if (ret) {
|
||||
logg("!Can't change ownership of PID file %s '%s'\n", opt->strarg, strerror(errno));
|
||||
err = 1;
|
||||
}
|
||||
|
@ -449,7 +449,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
#endif /*_WIN32*/
|
||||
|
||||
if (err){
|
||||
if (err) {
|
||||
localnets_free();
|
||||
whitelist_free();
|
||||
logg_close();
|
||||
|
@ -460,7 +460,7 @@ int main(int argc, char **argv)
|
|||
|
||||
#ifndef _WIN32
|
||||
dropPrivRet = drop_privileges(user_name, logg_file);
|
||||
if (dropPrivRet){
|
||||
if (dropPrivRet) {
|
||||
optfree(opts);
|
||||
return dropPrivRet;
|
||||
}
|
||||
|
@ -468,7 +468,7 @@ int main(int argc, char **argv)
|
|||
/* We have been daemonized, and initialization is done. Signal
|
||||
* the parent process so that it can exit cleanly.
|
||||
*/
|
||||
if (parentPid != getpid()){ //we have been daemonized
|
||||
if (parentPid != getpid()) { //we have been daemonized
|
||||
daemonize_signal_parent(parentPid);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: aCaB <acab@clamav.net>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Micah Snyder
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Micah Snyder
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* ClamAV bytecode handler tool.
|
||||
*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Török Edvin
|
||||
|
@ -52,7 +52,7 @@ static void help(void)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Bytecode Testing Tool %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" clambc <file> [function] [param1 ...]\n");
|
||||
printf("\n");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2006-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: Tomasz Kojm <tkojm@clamav.net>
|
||||
|
@ -207,7 +207,7 @@ static void help(void)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Configuration Tool %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" --help -h Show this help\n");
|
||||
printf(" --version -V Show version\n");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
@ -88,7 +88,7 @@ static void help(void)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Daemon %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" clamd [options]\n");
|
||||
printf("\n");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Trog, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Trog, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Trog, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Trog, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Trog, Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, Török Edvin
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, aCaB
|
||||
|
@ -225,7 +225,7 @@ void help(void)
|
|||
mprintf("\n");
|
||||
mprintf(" Clam AntiVirus: Daemon Client %s\n", get_version());
|
||||
mprintf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
mprintf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
mprintf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
mprintf("\n");
|
||||
mprintf(" clamdscan [options] [file/directory/-]\n");
|
||||
mprintf("\n");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, aCaB
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, aCaB
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, aCaB
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, aCaB
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* ClamdTOP
|
||||
*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2008-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Török Edvin
|
||||
|
@ -1339,7 +1339,7 @@ static void help(void)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Monitoring Tool %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" clamdtop [-hVc] [host[:port] /path/to/clamd.socket ...]\n");
|
||||
printf("\n");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
# The clamonacc executable.
|
||||
add_executable( clamonacc )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
@ -423,7 +423,7 @@ void help(void)
|
|||
mprintf("\n");
|
||||
mprintf(" ClamAV: On Access Scanning Application and Client %s\n", get_version());
|
||||
mprintf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
mprintf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
mprintf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
mprintf("\n");
|
||||
mprintf(" clamonacc [options] [file/directory/-]\n");
|
||||
mprintf("\n");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2015-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2009 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm, aCaB
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Author: Mickey Sola
|
||||
*
|
||||
|
@ -40,7 +40,7 @@ struct onas_sock_t onas_sock = {.written = 0};
|
|||
|
||||
/**
|
||||
* One time socket setup for unix file descriptor passing
|
||||
*
|
||||
*
|
||||
* @param ctx a point to the onas context struct
|
||||
* @return CL_SUCCESS if writing to socket struct was succesful, CL_EWRITE if the socket has already been written to
|
||||
*/
|
||||
|
@ -70,7 +70,7 @@ cl_error_t onas_set_sock_only_once(struct onas_context *ctx)
|
|||
|
||||
/**
|
||||
* Retrieves a working socket descriptor for unix fdpassing
|
||||
*
|
||||
*
|
||||
* @return Returns socket desctriptor on success, -1 on failure
|
||||
*/
|
||||
int onas_get_sockd()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Author: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2015-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2015-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2015-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2019-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2015-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2015-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2015-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Mickey Sola
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
@ -232,7 +232,7 @@ void help(void)
|
|||
mprintf("\n");
|
||||
mprintf(" Clam AntiVirus: Scanner %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
mprintf("\n");
|
||||
mprintf(" clamscan [options] [file/directory/-]\n");
|
||||
mprintf("\n");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: Tomasz Kojm
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -74,7 +74,7 @@ void usage(char *name)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Malware and False Positive Reporting Tool %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" %s -hHinpVvd?\n", name);
|
||||
printf("\n");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
dnl Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
dnl Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
dnl Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
dnl Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
dnl socklen_t check (c) Alexander V. Lukyanov <lav@yars.free.net>
|
||||
|
@ -400,4 +400,4 @@ if test "x$clamonacc-curl" = "xdeprecated"; then
|
|||
****** fdpassing with clamonacc will be disabled on your system.
|
||||
****** for more information on ClamAV's on-access scanner, please read our documentation: https://www.clamav.net/documents/on-access-scanning#on-access-scanning
|
||||
])])
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
# Fixes by Arkadiusz Miskiewicz <misiek@pld.org.pl>
|
||||
|
@ -40,4 +40,3 @@ install-data-local:
|
|||
if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chown ${CLAMAVUSER} $(DESTDIR)$(DBINST)/daily.cvd; fi;\
|
||||
if test -f $(DESTDIR)$(DBINST)/daily.cvd; then chgrp ${CLAMAVGROUP} $(DESTDIR)$(DBINST)/daily.cvd; fi;\
|
||||
fi
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
#
|
||||
# Example executables
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Compilation: gcc -Wall ex1.c -o ex1 -lclamav
|
||||
*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
* Author: Tomasz Kojm <tkojm@clamav.net>
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
if(WIN32)
|
||||
add_definitions(-DWIN32_LEAN_AND_MEAN)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
# Fixes - Arkadiusz Miskiewicz <misiek@pld.org.pl>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
* Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
*
|
||||
|
@ -158,7 +158,7 @@ static void help(void)
|
|||
printf("\n");
|
||||
printf(" Clam AntiVirus: Database Updater %s\n", get_version());
|
||||
printf(" By The ClamAV Team: https://www.clamav.net/about.html#credits\n");
|
||||
printf(" (C) 2020 Cisco Systems, Inc.\n");
|
||||
printf(" (C) 2021 Cisco Systems, Inc.\n");
|
||||
printf("\n");
|
||||
printf(" freshclam [options]\n");
|
||||
printf("\n");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2002-2013 Sourcefire, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
* Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
*
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Fuzz target for cl_load()
|
||||
*
|
||||
* Copyright (C) 2018-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2018-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Authors: Micah Snyder
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Fuzz target for cl_scanfile()
|
||||
*
|
||||
* Copyright (C) 2018-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2018-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Authors: Micah Snyder, Alex Gaynor
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Fuzz target for cl_scanmap_callback()
|
||||
*
|
||||
* Copyright (C) 2018-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2018-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Authors: Micah Snyder, Alex Gaynor
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -37,14 +37,16 @@
|
|||
|
||||
#include "clamav.h"
|
||||
|
||||
|
||||
void clamav_message_callback(enum cl_msg severity, const char *fullmsg,
|
||||
const char *msg, void *context) {
|
||||
const char *msg, void *context)
|
||||
{
|
||||
}
|
||||
|
||||
class ClamAVState {
|
||||
public:
|
||||
ClamAVState() {
|
||||
class ClamAVState
|
||||
{
|
||||
public:
|
||||
ClamAVState()
|
||||
{
|
||||
// Silence all the log messages, none of them are meaningful.
|
||||
cl_set_clcb_msg(clamav_message_callback);
|
||||
|
||||
|
@ -53,7 +55,8 @@ public:
|
|||
cl_engine_compile(engine);
|
||||
}
|
||||
|
||||
~ClamAVState() {
|
||||
~ClamAVState()
|
||||
{
|
||||
cl_engine_free(engine);
|
||||
}
|
||||
|
||||
|
@ -64,7 +67,8 @@ public:
|
|||
// that on each execution.
|
||||
ClamAVState kClamAVState;
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
{
|
||||
|
||||
struct cl_scan_options scanopts = {0};
|
||||
|
||||
|
@ -100,7 +104,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||
scanopts.general |= CL_SCAN_GENERAL_HEURISTICS;
|
||||
|
||||
const char *virus_name = nullptr;
|
||||
unsigned long scanned = 0;
|
||||
unsigned long scanned = 0;
|
||||
cl_scanmap_callback(
|
||||
clamav_data,
|
||||
NULL,
|
||||
|
@ -108,8 +112,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
|||
&scanned,
|
||||
kClamAVState.engine,
|
||||
&scanopts,
|
||||
nullptr
|
||||
);
|
||||
nullptr);
|
||||
|
||||
cl_fmap_close(clamav_data);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
# Copyright (C) 2018-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2018-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
'''
|
||||
This script is a convenience tool to run a standalone fuzz target against each
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2011-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: aCaB
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2011-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: aCaB
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (C) 2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2020-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
|
||||
include_directories(
|
||||
${LIBXML2_INCLUDE_DIR}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
# Copyright (C) 2007-2013 Sourcefire, Inc.
|
||||
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: David Raynor <draynor@sourcefire.com>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: David Raynor <draynor@sourcefire.com>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2014-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2014-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Kevin Lin <kevlin2@cisco.com>
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2014-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2014-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* Authors: Kevin Lin <klin@sourcefire.com>
|
||||
*
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2011-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2011-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Author: Török Edvin
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2011-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: aCaB
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2013-2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
|
||||
* Copyright (C) 2011-2013 Sourcefire, Inc.
|
||||
*
|
||||
* Authors: aCaB
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue