Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2ae6fd44f0079358ecc5aa08e388a5ed
---
libavcodec/8svx.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index abe5cf8..78c4999 100644
--- a/libavcodec/8svx.c
+++ b/libavcodec/8svx.c
@@ -81,8 +81,11 @@ static int eightsvx_decode_frame(AVCodecContext *avctx, void
*data, int *data_si
buf += 2;
}
- if (*data_size < buf_size * 2)
+ if (*data_size < buf_size * 2) {
+ av_log(avctx, AV_LOG_ERROR, "Provided buffer with size %d is too
small.\n",
+ *data_size);
return AVERROR(EINVAL);
+ }
delta_decode(out_data, buf, buf_size, &esc->fib_acc, esc->table);
--
1.7.1
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel