Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-25 04:45:38 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2015-07-20 05:43:39 +0300
commit63716cebb797a258c16f5207edef6f5166a18833 (patch)
treec3df7a2490b237c3226f54dc565f910821f87549
parent665b34df730b53a2a6557899d85dba598a91f1b2 (diff)
avcodec/put_bits: Assert that there is enough space left in skip_put_bytes()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 8f5ffed183e099128a732a00976f69fdc641d093) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/put_bits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index 82a0858942..70335e138b 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;
}