summaryrefslogtreecommitdiffstats
path: root/share/me/revisions
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2011-06-07 05:04:37 +0000
committerken <ken@FreeBSD.org>2011-06-07 05:04:37 +0000
commit048adb69c7c57c1cc5c423e5118cbc3e1176c3e7 (patch)
tree2dce1497dda325a64a355b6ba662229ee5875330 /share/me/revisions
parente58c149ca2067cb8717e0849b2b37e4791eedb89 (diff)
downloadFreeBSD-src-048adb69c7c57c1cc5c423e5118cbc3e1176c3e7.zip
FreeBSD-src-048adb69c7c57c1cc5c423e5118cbc3e1176c3e7.tar.gz
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
Diffstat (limited to 'share/me/revisions')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud