summaryrefslogtreecommitdiff
path: root/libavcodec/argo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2021-09-03 17:12:53 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2021-09-05 22:22:05 +0200
commit26659fe53ee9e51dc06ea2384321cc18229f5768 (patch)
treeac710f37517907514cb44f2d9714ce5a456c1437 /libavcodec/argo.c
parent0c87b43c6cd45a66c54134026d2f2cf823df4c7d (diff)
downloadffmpeg-26659fe53ee9e51dc06ea2384321cc18229f5768.tar.gz
avcodec/argo: Move U, fix shift
Fixes: left shift of 255 by 24 places cannot be represented in type 'int' Fixes: 37249/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ARGO_fuzzer-5754862984888320 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/argo.c')
-rw-r--r--libavcodec/argo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/argo.c b/libavcodec/argo.c
index df9aab92a8..66f3d96480 100644
--- a/libavcodec/argo.c
+++ b/libavcodec/argo.c
@@ -58,7 +58,7 @@ static int decode_pal8(AVCodecContext *avctx, uint32_t *pal)
return AVERROR_INVALIDDATA;
for (int i = 0; i < count; i++)
- pal[start + i] = (0xFF << 24U) | bytestream2_get_be24u(gb);
+ pal[start + i] = (0xFFU << 24) | bytestream2_get_be24u(gb);
return 0;
}