[BusyBox] SIGSEGV with klogd
Glenn McGrath
bug1 at iinet.net.au
Fri Aug 6 01:01:42 UTC 2004
On Tue, 27 Jul 2004 14:12:37 -0400
William Barsse <wbarsse at pfn.com> wrote:
> Hi all,
>
> I've run into an issue with klogd causing a segv. It seems to be due
> to the way the syslog call is being made with data read from the
> kernel's log buffer. The call looks like this
>
> syslog(priority, stuff);
>
> however this breaks if 'stuff' contains a % character since it is
> regarded as a format string. Calling it this way solves things :
>
> syslog(priority, "%s", stuff);
Ive applied this, but i didnt see the need to change 'int
console_log_level' to an unsigned.
Havent looked at your 2nd patch yet.
Glenn
More information about the busybox
mailing list