Package: mergelog
Version: 4.5.1-7
Severity: normal

mergelog fails when processing log file entries like this one:

::1 - - [27/Jul/2009:16:40:20 +0200] "GET /mod_status?auto HTTP/1.1" 200 441 
"-" "collectd/4.4.2"

According to the macro SCAN_OFFSET defined in src/mergelog.c in line 35, the 
first 9 characters are stripped from each log file entry. In the line above, 
this will result 
in the line

27/Jul/2009:16:40:20 +0200] "GET /mod_status?auto HTTP/1.1" 200 441 "-" 
"collectd/4.4.2"

Hence, on line 406 memchr() doesn't find the character "[" and fails.

Setting SCAN_OFFSET to 8 instead of 9 fixes this problem.

This issue affects both mergelog 4.5.1-7 (stable) and 4.5.1-8 (testing and 
unstable).


-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental'), (1, 'unstable'), (1, 
'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-openvz-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mergelog depends on:
ii  libc6                  2.9-20            GNU C Library: Shared libraries
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

mergelog recommends no packages.

mergelog suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to