BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001574 [BusyBox] Standards Compliance minor always 11-04-07 07:29 02-13-08 01:19
Reporter pipatron View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.4.x
Summary 0001574: syslogd includes null-byte in message transmitted to remote server
Description Log messages transmitted to remote hosts includes a \0 at the end, which might be an inconvenience at the remote side when filtering or storing the message. It's difficult to say if this conforms to the standards or not, since there aren't any, but no other syslog clients I've seen behaves like this.

Included are tcpdump captures to show the behaviour.
Additional Information busybox 1.4.2 on OpenWRT:

antenna:~$ tcpdump -s0 -X dst port 514
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 65535 bytes
16:16:47.872167 IP antenna.1578 > spiegelsaal.514: SYSLOG user.notice, length: 40
        0x0000: 4500 0044 0000 4000 4011 7e7c 0a13 5401 E..D..@.@.~|..T.
        0x0010: 0a13 5406 062a 0202 0030 90db 3c31 333e ..T..*...0..<13>
        0x0020: 4e6f 7620 2034 2031 363a 3136 3a34 3720 Nov..4.16:16:47.
        0x0030: 726f 6f74 3a20 4865 6c6c 6f2c 2057 6f72 root:.Hello,.Wor
        0x0040: 6c64 2100 ld!.
--------------------------------
Same "Hello, World!" message on Ubuntu 7.10 with the default syslog:

16:12:06.981503 IP airwaves.radioland.syslog > spiegelsaal.radioland.syslog: SYSLOG user.notice, length: 24
        0x0000: 4500 0034 0000 4000 4011 7e89 0a13 5404 E..4..@.@.~...T.
        0x0010: 0a13 5406 0202 0202 0020 73e5 3c31 333e ..T.......s.<13>
        0x0020: 7069 7065 3a20 4865 6c6c 6f2c 2057 6f72 pipe:.Hello,.Wor
        0x0030: 6c64 210a ld!.
Attached Files  busybox-vs-syslog.txt [^] (1,250 bytes) 11-04-07 07:37
 3.patch [^] (1,861 bytes) 11-05-07 17:03

- Relationships

- Notes
(0002888)
pipatron
11-04-07 07:38

The debug output got mangled, I uploaded a normal textfile to show the issue.
 
(0002891)
vda
11-05-07 17:03

Try 3.patch
 
(0004354)
vda
02-13-08 01:19

Fixed in revision 21003. Thanks.
 

- Issue History
Date Modified Username Field Change
11-04-07 07:29 pipatron New Issue
11-04-07 07:29 pipatron Status new => assigned
11-04-07 07:29 pipatron Assigned To  => BusyBox
11-04-07 07:37 pipatron File Added: busybox-vs-syslog.txt
11-04-07 07:38 pipatron Note Added: 0002888
11-05-07 17:03 vda File Added: 3.patch
11-05-07 17:03 vda Note Added: 0002891
11-05-07 17:03 vda Status assigned => feedback
02-13-08 01:19 vda Status feedback => closed
02-13-08 01:19 vda Note Added: 0004354
02-13-08 01:19 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker