nsvdec: Be more careful with av_malloc().
authorAlex Converse <alex.converse@gmail.com>
Fri, 27 Jan 2012 01:21:46 +0000 (17:21 -0800)
committerAlex Converse <alex.converse@gmail.com>
Mon, 30 Jan 2012 18:15:19 +0000 (10:15 -0800)
commit8fd8a48263ff1437f9d02d7e78dc63efb9b5ed3a
treea7b2a2e29e7786bc0559a472590191a302622ff2
parent6a89b41d9780325ba6d89a37f2aeb925aa68e6a3
nsvdec: Be more careful with av_malloc().

Check results for av_malloc() and fix an overflow in one call.

Related to CVE-2011-3940.

Based in part on work from Michael Niedermayer.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
libavformat/nsvdec.c