Do not attempt to render a logrecord with length byte, until we have

decompressed all the bytes required.
This commit is contained in:
Poul-Henning Kamp 2010-05-15 08:57:16 +00:00
parent 46168c5453
commit c6bfb71a6f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208110

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;