git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cbb31a
)
wavpack: fix out of array access
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Nov 2012 13:42:45 +0000
(14:42 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Nov 2012 13:43:05 +0000
(14:43 +0100)
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wavpack.c
patch
|
blob
|
history
diff --git
a/libavcodec/wavpack.c
b/libavcodec/wavpack.c
index
69637fe
..
2935abf
100644
(file)
--- a/
libavcodec/wavpack.c
+++ b/
libavcodec/wavpack.c
@@
-1208,11
+1208,12
@@
static int wavpack_decode_frame(AVCodecContext *avctx, void *data,
}
/* get output buffer */
- s->frame.nb_samples = s->samples;
+ s->frame.nb_samples = s->samples
+ 1
;
if ((ret = avctx->get_buffer(avctx, &s->frame)) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret;
}
+ s->frame.nb_samples = s->samples;
while (buf_size > 0) {
if (!s->multichannel) {