nsvdec: Check av_malloc(string_size)
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 29 Dec 2011 20:31:22 +0000 (21:31 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jan 2012 21:41:16 +0000 (22:41 +0100)
commit53c430415a65cb4097bdb59b924aaa09bc5e2bb2
tree1e941ee857a8006d7be562769efa7fb4f728ed10
parentf246d46ee66678bdd23e939aaede28943cfeb8da
nsvdec: Check av_malloc(string_size)

This can easily be NULL as string_size can be 2g in a damaged file.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b9e0e9537a3ec4af1630e9f1b8d0ce68885cac16)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/nsvdec.c