diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-25 03:45:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-25 05:14:02 +0200 |
commit | 8f5ffed183e099128a732a00976f69fdc641d093 (patch) | |
tree | 9ab29f8966bfe80ef20e33b4f0062147532c0b39 | |
parent | 561d3a57aaa95c7e8e65e96b36dd069100603650 (diff) | |
download | ffmpeg-8f5ffed183e099128a732a00976f69fdc641d093.tar.gz |
avcodec/put_bits: Assert that there is enough space left in skip_put_bytes()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/put_bits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h index 031db334d1..1a6f0afaa8 100644 --- a/libavcodec/put_bits.h +++ b/libavcodec/put_bits.h @@ -229,6 +229,7 @@ static inline void skip_put_bytes(PutBitContext *s, int n) { av_assert2((put_bits_count(s) & 7) == 0); av_assert2(s->bit_left == 32); + av_assert0(n <= s->buf_end - s->buf_ptr); s->buf_ptr += n; } |