projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c0080b
)
vmdaudio: fix invalid reads when packet size is not a multiple of chunk size
author
Anton Khirnov
<anton@khirnov.net>
Wed, 6 Mar 2013 09:42:51 +0000
(10:42 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Fri, 8 Mar 2013 07:12:41 +0000
(08:12 +0100)
CC:libav-stable@libav.org
libavcodec/vmdav.c
patch
|
blob
|
history
diff --git
a/libavcodec/vmdav.c
b/libavcodec/vmdav.c
index
b5b5524
..
8c6c7d5
100644
(file)
--- a/
libavcodec/vmdav.c
+++ b/
libavcodec/vmdav.c
@@
-627,7
+627,7
@@
static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data,
/* decode audio chunks */
if (audio_chunks > 0) {
buf_end = buf + buf_size;
- while (buf
<
buf_end) {
+ while (buf
+ s->chunk_size <=
buf_end) {
if (s->out_bps == 2) {
decode_audio_s16(output_samples_s16, buf, s->chunk_size,
avctx->channels);