mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-09 01:50:35 +00:00
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:
parent
cb1d64f228
commit
7718b093ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=208506
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue