Kenneth D. Merry 5e319c480c Set pca.p_bufr to NULL when we haven't allocated a buffer.
Otherwise, p_bufr is set to garbage on the stack, and if that garbage
happens to be non-NULL, and the TOLOG or TOCONS flag is set, putbuf()
will get called and attempt to fill the non-existent buffer.

This is really only relevant for tprintf() (and only when the priority is
not -1), but set it in uprintf() and ttyprintf() for completeness.

The next step, to avoid log buffer scrambling, would be to add the
PRINTF_BUFR_SIZE code to tprintf(), but this should prevent panics.

Submitted by:	rmacklem
Found by:	pho
2011-06-07 05:04:37 +00:00
..
2011-04-18 16:32:47 +00:00
2011-04-14 14:25:47 +00:00
2011-04-13 11:28:46 +00:00
2011-04-26 07:30:52 +00:00
2010-11-22 15:28:54 +00:00
2010-11-25 20:05:11 +00:00
2011-05-24 19:55:57 +00:00
2011-04-18 16:32:47 +00:00
2011-04-18 16:32:47 +00:00
2011-04-06 19:08:50 +00:00
2011-04-06 19:08:50 +00:00
2011-04-06 19:08:50 +00:00
2010-01-04 20:59:52 +00:00
2011-04-02 15:02:42 +00:00
2009-05-26 09:19:21 +00:00
2010-11-14 16:10:15 +00:00