Merge r208110:

> Do not attempt to render a logrecord with length byte, until we have
> decompressed all the bytes required.

Requested by:	phk
This commit is contained in:
Ken Smith 2010-05-24 15:26:40 +00:00
parent cb1d64f228
commit 7718b093ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=208506

View file

@ -225,6 +225,8 @@ fifolog_reader_chop(struct fifolog_reader *fr, fifolog_reader_render_t *func, vo
if (u & FIFOLOG_LENGTH) {
v = p[w];
w++;
if (p + w + v >= q)
return (p);
} else {
for (v = 0; p + v + w < q && p[v + w] != '\0'; v++)
continue;