Bug in sysklogd v1.3-0

Andrew E. Mileski (aem@ott.hookup.net)
Tue, 19 Nov 1996 01:33:41 -0500 (EST)


I just checked the LATEST sysklogd package (v1.3-0) available from
sunsite and tsx-11, and it _still_ has the version bug :-(

To patch the sysklogd source code, edit the function CheckVersion()
in the file ksym.c, and change line 406 from:
auto char vstring[6];
to:
auto char vstring[9];
Which is plenty of room for versions like v255.255.255 :-)
(v255.255.255 = 0xffffff = 16777215 which is a 9 character string)

This bug affects all v2.*.* kernels.
(v2.0.0 = 0x20000 = 131072 which is a 7 character string)

--
Andrew E. Mileski   mailto:aem@ott.hookup.net
Linux Plug-and-Play Kernel Project http://www.redhat.com/linux-info/pnp/
XFree86 Matrox Team http://www.bf.rmit.edu.au/~ajv/xf86-matrox.html