Small bug found
"Kai Risku" <[email protected]> Tue, 14 May 2013 08:58:28 +0300
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
Markovian classifier tries to update the timestamp of the css file, but unfortunately has lost the filename to use.
Here is a patch:
--- crm_markovian.c.orig 2013-05-13 12:51:52.000000000 +0300
+++ crm_markovian.c 2013-05-13 12:53:15.000000000 +0300
@@ -148,6 +148,8 @@
// filename starts at i, ends at j. null terminate it.
htext[j] = '\000';
+ int filenameidx = i;
+
// and stat it to get it's length
k = stat (&htext[i], &statbuf);
@@ -724,7 +726,7 @@
{
int hfd; // hashfile fd
FEATURE_HEADER_STRUCT foo;
- hfd = open (&(htext[i]), O_RDWR);
+ hfd = open (&(htext[filenameidx]), O_RDWR);
dontcare = read (hfd, &foo, sizeof(foo));
lseek (hfd, 0, SEEK_SET);
dontcare = write (hfd, &foo, sizeof(foo));
--
[email protected] GSM +358-40-767 8282
Oy Arrak Software Ab http://www.arrak.fi
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d