Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: source/patched-ffmpeg-mt/libavformat/rtpdec_asf.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
}
« no previous file with comments | « source/patched-ffmpeg-mt/libavformat/rtpdec.c ('k') | source/patched-ffmpeg-mt/libavformat/rtpdec_formats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698