avcodec/htmlsubtitles: Be a bit more picky on syntax
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Jul 2017 22:09:42 +0000 (00:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 18 Jul 2017 20:14:16 +0000 (22:14 +0200)
commitc61715e2c505c15a5cfc9eab18b4311a6504055a
treee00db95db9a6962809ecdec5f218c84e99f16284
parent2886142e0c3b5f4304c6e2a2bd282770a8a47f93
avcodec/htmlsubtitles: Be a bit more picky on syntax

This reduces the number of strstr() calls per byte
This diasalows empty tags like '< >' as well as '<' in tags like '<ab<cd<<ef>'

Fixes timeout
Fixes: 1817/clusterfuzz-testcase-minimized-5104230530547712

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/htmlsubtitles.c