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

Side by Side Diff: chromium/patches/from_upstream/51_vp3_coefficient_overflow.patch

Issue 9290059: Initial commit of all previous Chrome build scripts. (Closed) Base URL: http://git.chromium.org/chromium/third_party/ffmpeg.git@master
Patch Set: Drop deprecated subfolder. Created 8 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
2 index 549f494..2f07af8 100644
3 --- a/libavcodec/vp3.c
4 +++ b/libavcodec/vp3.c
5 @@ -1308,6 +1308,10 @@ static inline int vp3_dequant(Vp3DecodeContext *s, Vp3Fra gment *frag,
6 case 1: // zero run
7 s->dct_tokens[plane][i]++;
8 i += (token >> 2) & 0x7f;
9 + if(i>63){
10 + av_log(s->avctx, AV_LOG_ERROR, "Coefficient index overflow\n");
11 + return -1;
12 + }
13 block[perm[i]] = (token >> 9) * dequantizer[perm[i]];
14 i++;
15 break;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698