diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-13 02:56:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-13 04:17:13 +0200 |
commit | db93fd74e4be68f97efcb958537f46a2a133aa47 (patch) | |
tree | 0fd8f3233a0e58c72a634a1e5c4050cf79f1078c /libavcodec/golomb.h | |
parent | 6e09e12641169da102853d944d7416e68a89d039 (diff) | |
download | ffmpeg-db93fd74e4be68f97efcb958537f46a2a133aa47.tar.gz |
avcodec/golomb: Assert that the input is not too large in set_ue_golomb()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/golomb.h')
-rw-r--r-- | libavcodec/golomb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index 0833aff468..4f5514795a 100644 --- a/libavcodec/golomb.h +++ b/libavcodec/golomb.h @@ -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); |