mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
可能数组越界
可能数组越界
This commit is contained in:
parent
67671e43f9
commit
6cf5a6a7a9
1 changed files with 1 additions and 0 deletions
|
@ -189,6 +189,7 @@ int SrsFastBuffer::grow(ISrsBufferReader* reader, int required_size)
|
||||||
// we just move the ptr to next.
|
// we just move the ptr to next.
|
||||||
srs_assert((int)nread > 0);
|
srs_assert((int)nread > 0);
|
||||||
end += nread;
|
end += nread;
|
||||||
|
max_to_read -= nread;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue