-
The code in function srSLMGParseTIMESTAMP3164 in syslogmessage.c has some bugs when parsing the month file, at least in the C++ compiler of Visual Studio 2003.
The original code has something like:
(for parsing "mar" or "may")
case 'M':
if(*pszTS++ == 'a')
if(*pszTS++ == 'r')
pThis->iTimStampMonth = 3;
else
if(*pszTS++ == 'y')
...
The problem with this code is that...
2007-05-30 06:31:16 UTC by nobody
-
Logged In: YES
user_id=1312539
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
2006-10-21 02:20:09 UTC by sf-robot
-
Logged In: YES
user_id=389195
I have found the relevant part in the code and have updated
the anon CVS. However, I could not yet test it. Help with
testing in practice would be much appreciated.
2006-10-06 16:36:40 UTC by rgerhards
-
rgerhards committed patchset 28 of module instable to the liblogging CVS repository, changing 5 files.
2006-10-06 16:34:44 UTC by rgerhards
-
My code is the following:
Session session;
try {
session = TCPSessionCreator.initiate(host, port);
} catch (BEEPException e) {
System.err.println("Error connecting to " +
host + ":" +
port + "\n\t" + e.getMessage
());
return;
}
The result what I got is:
Sep 19, 2006 2:50:37 PM...
2006-09-19 20:12:09 UTC by nobody
-
Somehow the code expect empty message cannot happen, but
when I open the a session from beepcore-java, 1st there is a
correct header, 2nd message recognized by liblogging is
empty, so the for is immediatly generates segfault....
0x0805294f in sbMIMEExtract (pszInBuf=0x0, iInBufLen=0,
pszMIMEHdr=0xbfffef20,
pszPayload=0xbfffef1c) at beepmessage.c:154
154 for(psz =...
2006-09-19 18:37:27 UTC by nobody
-
ethereal dump - message from the java client to the server
0000 00 03 47 d0 47 01 00 14 22 f7 53 e9 08 00 45 00
..G.G...".S...E.
0010 00 78 5d 61 40 00 80 06 f9 0c 03 46 ce 16 03 46
.x]a@......F...F
0020 cf 6f 05 73 02 59 b6 1e 79 0b a7 92 74 19 50 18
.o.s.Y..y...t.P.
0030 ff 69 29 30 00 00 52 50 59 20 30 20 30 20 2e 20
.i)0..RPY 0 0 .
0040 30 20 35 39 0d 0a 43 6f 6e 74...
2006-09-15 19:00:55 UTC by nobody
-
I run the testsrvr (both with 0.5 and 0.6)
The testsrvr listening on TCP 601
I try to start a session with the
"http://iana.org/beep/SYSLOG/RAW" profile from
beepcore-j (to the default 601 port).
The testsrvr crashes at session creation time.
gdb output:
Compiled with liblogging version 0.5.0.
See http://www.monitorware.com/liblogging/ for updates.
Listening for incoming...
2006-09-15 18:21:42 UTC by nobody
-
rgerhards committed patchset 27 of module instable to the liblogging CVS repository, changing 2 files.
2005-10-14 09:02:39 UTC by rgerhards
-
rgerhards committed patchset 26 of module instable to the liblogging CVS repository, changing 1 files.
2005-10-14 07:06:39 UTC by rgerhards