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>2013-12-30 01:58:38 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-30 03:52:24 +0400
commit100a54da5264436202daeedd68ed5e4a8be41459 (patch)
tree9465bdf3db387db747c1760c985c4f2b9e3d5732 /libavcodec/lagarith.c
parent9ed640015bf321b20b1e8ab8767be5b4ebcc3d0d (diff)
avcodec/lagarith: disable lag_decode_zero_run_line() and ask for a sample
The code seems to have never been tested fixing it should be quite easy but needs a sample/testcase Fixes use of uninitialized memory Fixes: msan_uninit-mem_7f9a862dfabf_413_2889_assassin_OL.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lagarith.c')
-rw-r--r--libavcodec/lagarith.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 0a4d23e7a2..23934ceed8 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -369,6 +369,9 @@ static int lag_decode_zero_run_line(LagarithContext *l, uint8_t *dst,
uint8_t mask2 = -(esc_count < 3);
uint8_t *end = dst + (width - 2);
+ avpriv_request_sample(l->avctx, "zero_run_line");
+ return AVERROR_PATCHWELCOME;
+
output_zeros:
if (l->zeros_rem) {
count = FFMIN(l->zeros_rem, width - i);