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>
Sun, 7 Oct 2018 19:34:00 +0000 (21:34 +0200)
commit6e60a38322d18be3464cfd81cf47b04b9b620d71
treebd2fedf5a893eb1147b09a708f670f6bf5491d7e
parentf2b51fd54c44659ef9d6b39abd38b87de6d8848d
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