1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

可能数组越界

可能数组越界
This commit is contained in:
tufang14 2015-03-16 15:08:17 +08:00
parent 67671e43f9
commit 6cf5a6a7a9

View file

@ -189,6 +189,7 @@ int SrsFastBuffer::grow(ISrsBufferReader* reader, int required_size)
// we just move the ptr to next.
srs_assert((int)nread > 0);
end += nread;
max_to_read -= nread;
}
return ret;