aboutsummaryrefslogtreecommitdiff
path: root/security/clamav/files
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2007-06-01 17:09:09 +0000
committerRenato Botelho <garga@FreeBSD.org>2007-06-01 17:09:09 +0000
commit0744663c925b76894267abb56676b138b9dc716e (patch)
tree8fc146d7b39b67bfb6fedc2b245fb9be59ba6daa /security/clamav/files
parentf544ad6e1aec62d37bc39f16f4569f618d45ec36 (diff)
downloadports-0744663c925b76894267abb56676b138b9dc716e.tar.gz
ports-0744663c925b76894267abb56676b138b9dc716e.zip
Notes
Diffstat (limited to 'security/clamav/files')
-rw-r--r--security/clamav/files/patch-libclamav__matcher-ac.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/security/clamav/files/patch-libclamav__matcher-ac.c b/security/clamav/files/patch-libclamav__matcher-ac.c
deleted file mode 100644
index ad517cf5fcda..000000000000
--- a/security/clamav/files/patch-libclamav__matcher-ac.c
+++ /dev/null
@@ -1,65 +0,0 @@
---- libclamav/matcher-ac.c.orig Mon Apr 9 19:16:01 2007
-+++ libclamav/matcher-ac.c Mon Apr 9 19:25:18 2007
-@@ -301,7 +301,7 @@
-
- int cli_ac_initdata(struct cli_ac_data *data, unsigned int partsigs, unsigned int tracklen)
- {
-- unsigned int i, j;
-+ unsigned int i;
-
-
- if(!data) {
-@@ -366,30 +366,26 @@
- * allocation in cli_ac_scanbuff()
- */
-
-- for(i = 0; i < partsigs; i++) {
-- data->partoff[i] = (unsigned int *) cli_calloc(tracklen, sizeof(unsigned int));
-+ data->partoff[0] = (unsigned int *) cli_calloc(partsigs * tracklen, sizeof(unsigned int));
-
-- if(!data->partoff[i]) {
-- for(j = 0; j < i; j++)
-- free(data->partoff[j]);
--
-- free(data->partoff);
-- free(data->partcnt);
-- free(data->offcnt);
-- free(data->offidx);
-- free(data->maxshift);
-- cli_errmsg("cli_ac_init(): unable to cli_calloc(%u, %u)\n", tracklen, sizeof(unsigned int));
-- return CL_EMEM;
-- }
-+ if(!data->partoff[0]) {
-+ free(data->partoff);
-+ free(data->partcnt);
-+ free(data->offcnt);
-+ free(data->offidx);
-+ free(data->maxshift);
-+ cli_errmsg("cli_ac_init(): unable to cli_calloc(%u, %u)\n", partsigs * tracklen, sizeof(unsigned int));
-+ return CL_EMEM;
- }
-
-+ for(i = 0; i < partsigs; i++)
-+ data->partoff[i] = data->partoff[0] + tracklen * i;
-+
- return CL_SUCCESS;
- }
-
- void cli_ac_freedata(struct cli_ac_data *data)
- {
-- unsigned int i;
--
-
- if(data && data->partsigs) {
- free(data->partcnt);
-@@ -397,9 +393,7 @@
- free(data->offidx);
- free(data->maxshift);
-
-- for(i = 0; i < data->partsigs; i++)
-- free(data->partoff[i]);
--
-+ free(data->partoff[0]);
- free(data->partoff);
- }
- }