Browse Source

avcodec/rv34: Fix runtime error: signed integer overflow: 36880 * 66288 cannot be represented in type 'int'

Fixes: 768/clusterfuzz-testcase-4807444305805312

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit a66c6e28b5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2.5
Michael Niedermayer 9 years ago
parent
commit
b0c5fff859
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/rv34.c

+ 1
- 1
libavcodec/rv34.c View File

@@ -1630,7 +1630,7 @@ static AVRational update_sar(int old_w, int old_h, AVRational sar, int new_w, in
if (!sar.num)
sar = (AVRational){1, 1};

sar = av_mul_q(sar, (AVRational){new_h * old_w, new_w * old_h});
sar = av_mul_q(sar, av_mul_q((AVRational){new_h, new_w}, (AVRational){old_w, old_h}));
return sar;
}



Loading…
Cancel
Save