Fixes: negation of -2147483648 cannot be represented in type 'int32_t' (aka 'int'); cast to an unsigned type to negate this value to itself Fixes: 390646659/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_OSQ_fuzzer-5040277374435328
Unified · Split
| @@ -190,7 +190,7 @@ static uint32_t get_urice(GetBitContext *gb, int k) · 189 unmodified lines | |||
| 190 | 190 | ||
| 191 | static int32_t get_srice(GetBitContext *gb, int x) | 191 | static int32_t get_srice(GetBitContext *gb, int x) |
| 192 | { | 192 | { |
| 193 | int32_t y = get_urice(gb, x); | 193 | uint32_t y = get_urice(gb, x); |
| 194 | return get_bits1(gb) ? -y : y; | 194 | return get_bits1(gb) ? -y : y; |
| 195 | } | 195 | } |
| 196 | 196 | ||