| Index: source/patched-ffmpeg-mt/libavformat/rtpdec_asf.c
|
| ===================================================================
|
| --- source/patched-ffmpeg-mt/libavformat/rtpdec_asf.c (revision 59334)
|
| +++ source/patched-ffmpeg-mt/libavformat/rtpdec_asf.c (working copy)
|
| @@ -230,7 +230,8 @@
|
| int prev_len = out_len;
|
| out_len += cur_len;
|
| asf->buf = av_realloc(asf->buf, out_len);
|
| - memcpy(asf->buf + prev_len, buf + off, cur_len);
|
| + memcpy(asf->buf + prev_len, buf + off,
|
| + FFMIN(cur_len, len - off));
|
| url_fskip(pb, cur_len);
|
| }
|
| }
|
|
|