1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

Merge pull request #337 from tufang14/develop

可能数组越界
This commit is contained in:
winlin 2015-03-16 16:02:06 +08:00
commit 9a0a8affc5

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;