Commit db93fd74 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/golomb: Assert that the input is not too large in set_ue_golomb()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 6e09e126
......@@ -463,6 +463,7 @@ static inline int get_te(GetBitContext *s, int r, char *file, const char *func,
static inline void set_ue_golomb(PutBitContext *pb, int i)
{
av_assert2(i >= 0);
av_assert2(i <= 0xFFFE);
if (i < 256)
put_bits(pb, ff_ue_golomb_len[i], i + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment