可能数组越界

可能数组越界
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;