tufang14

可能数组越界

可能数组越界
@@ -189,6 +189,7 @@ int SrsFastBuffer::grow(ISrsBufferReader* reader, int required_size) @@ -189,6 +189,7 @@ int SrsFastBuffer::grow(ISrsBufferReader* reader, int required_size)
189 // we just move the ptr to next. 189 // we just move the ptr to next.
190 srs_assert((int)nread > 0); 190 srs_assert((int)nread > 0);
191 end += nread; 191 end += nread;
  192 + max_to_read -= nread;
192 } 193 }
193 194
194 return ret; 195 return ret;