wmapro: make sure there is room to store the current packet
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 28 Jun 2013 02:03:47 +0000 (04:03 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sat, 6 Jul 2013 08:06:11 +0000 (10:06 +0200)
commit4ff5167ee7fdee6d35c1bb2558172329ae6ec770
treefc46915adaa8f72c8661aa5bef5ba70e2af9eef8
parentb20004b2e6165a6d5ef6bc6ae98d3d33c6460808
wmapro: make sure there is room to store the current packet

Prevent horrid and hard to trace struct overwrite.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit e30b068ef79f604ff439418da07f7e2efd01d4ea)

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