shorten: Use separate pointers for the allocated memory for decoded samples.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Dec 2011 11:28:50 +0000 (12:28 +0100)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 16 Feb 2012 20:18:45 +0000 (15:18 -0500)
commit204cb29b3c84a74cbcd059d353c70c8bdc567d98
tree4c05fff596e4046589df9ded725823718b4445f4
parentc509f4f74713b035a06f79cb4d00e708f5226bc5
shorten: Use separate pointers for the allocated memory for decoded samples.

Fixes invalid free() if any of the buffers are not allocated due to either
not decoding a header or an error prior to allocating all buffers.

Fixes CVE-2012-0858
CC: libav-stable@libav.org

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/shorten.c