Browse Source

avcodec/hevc_ps: Fix runtime error: signed integer overflow: 2147483628 + 256 cannot be represented in type 'int'

Fixes: 1909/clusterfuzz-testcase-minimized-6732072662073344

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4
Michael Niedermayer 8 years ago
parent
commit
6726328f79
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/hevc_ps.c

+ 1
- 1
libavcodec/hevc_ps.c View File

@@ -751,7 +751,7 @@ static int scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingLi
ff_hevc_diag_scan8x8_x[i]; ff_hevc_diag_scan8x8_x[i];


scaling_list_delta_coef = get_se_golomb(gb); scaling_list_delta_coef = get_se_golomb(gb);
next_coef = (next_coef + scaling_list_delta_coef + 256) % 256;
next_coef = (next_coef + 256U + scaling_list_delta_coef) % 256;
sl->sl[size_id][matrix_id][pos] = next_coef; sl->sl[size_id][matrix_id][pos] = next_coef;
} }
} }


Loading…
Cancel
Save