avformat/nsvdec: Do not parse multiple NSVf
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Aug 2018 10:23:20 +0000 (12:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Oct 2018 23:52:46 +0000 (00:52 +0100)
commitb80d7d4a092048251336806095138ae5f495bad4
tree53d3fdbd90620efc34b462a431f4bda64e436725
parent24add16a323630d38be67203b2272b951ce68575
avformat/nsvdec: Do not parse multiple NSVf

The specification states "NSV files may contain a single file header. "
Fixes: out of array access
Fixes: nsv-asan-002f473f726a0dcbd3bd53e422c4fc40b3cf3421

Found-by: Paul Ch <paulcher@icloud.com>
Tested-by: Paul Ch <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 78d4b6bd43fc266a2ee926f0555c8782246f9445)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/nsvdec.c