avutil/log: check that len is within the buffer before reading it
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 27 Nov 2013 16:04:05 +0000 (17:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 27 Nov 2013 16:06:42 +0000 (17:06 +0100)
commit808c10e728db2d92ccbb0f8b3bcd4a2f4305a2cf
tree4caa4c7dd12a17309089fb1db9cb7028036fc31d
parent6b58488f926af1fa38ceb189e891c2d5925f4633
avutil/log: check that len is within the buffer before reading it

Fixes out of array read
Fixes: asan_heap-oob_19d6979_6857_mmw_deadzy.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/log.c