Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Jul 2011 12:59:54 +0000 (14:59 +0200)
committerReinhard Tartler <siretart@tauware.de>
Wed, 2 Nov 2011 20:49:55 +0000 (21:49 +0100)
commit4f07a3aa2c6b7356c28646692261aa9080605fcc
tree656e8e76ecf1e72765415f7c6d564f06262364d3
parent04888edef344b09daaabbc30b3fa5ab32d3bd866
Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080.

Whitespace of the patch cleaned up by Aurel
Some of the issues have been reported by Steve Manzuik / Microsoft Vulnerability Research (MSVR)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 956c901c68eff78288f40e3c8f41ee2fa081d4a8)

Further suggestions from Kostya <kostya.shishkov@gmail.com> have been
implemented by Reinhard Tartler <siretart@tauware.de>

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit 77d2ef13a8fa630e5081f14bde3fd20f84c90aec)

NB: MSVR-11-0080 doesn't seem to exist. This issue seems to be known
as MSVR11-011 instead.

Fixes: CVE-2011-3504

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