mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Do not attempt to render a logrecord with length byte, until we have
decompressed all the bytes required.
This commit is contained in:
parent
46168c5453
commit
c6bfb71a6f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208110
@ -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 New Issue
Block a user