ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Tue Jun 13 02:56:58 2017 +0200| [db93fd74e4be68f97efcb958537f46a2a133aa47] | committer: Michael Niedermayer
avcodec/golomb: Assert that the input is not too large in set_ue_golomb() Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db93fd74e4be68f97efcb958537f46a2a133aa47 --- libavcodec/golomb.h | 1 + 1 file changed, 1 insertion(+) 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); _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
