nsvdec: Be more careful with av_malloc().
authorAlex Converse <alex.converse@gmail.com>
Fri, 27 Jan 2012 01:21:46 +0000 (17:21 -0800)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Apr 2012 16:33:28 +0000 (18:33 +0200)
commitbe524c186b50337db64d34a5726dfe3e8ea94f09
treefda127106cbb9312c0845ac5b11cf3379cb5766f
parent65beb8c1173906b0541442713cb29e8ba44c47ef
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
(cherry picked from commit 8fd8a48263ff1437f9d02d7e78dc63efb9b5ed3a)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavformat/nsvdec.c