[vlc-commits] codec/substtml: fix inifinite loop on unexpected data
Filip Roséen
git at videolan.org
Tue Sep 20 00:59:19 CEST 2016
vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Sep 19 23:53:33 2016 +0200| [713b852b15a96b81723fc67f9e31f17e94d4c0d4] | committer: Hugo Beauzée-Luyssen
codec/substtml: fix inifinite loop on unexpected data
fixes #17403
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=713b852b15a96b81723fc67f9e31f17e94d4c0d4
---
modules/codec/substtml.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index fcdaf90..8d5e3a3 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -517,7 +517,8 @@ static void ParseTTMLStyles( decoder_t* p_dec )
if( i_type == XML_READER_STARTELEM && ( !strcasecmp( psz_node_name, "tt" ) || !strcasecmp( psz_node_name, "tt:tt" ) ) )
{
int i_type = xml_ReaderNextNode( p_reader, &psz_node_name );
- while( i_type != XML_READER_STARTELEM || ( strcasecmp( psz_node_name, "styling" ) && strcasecmp( psz_node_name, "tt:styling" ) ) )
+
+ while( i_type != XML_READER_STARTELEM || ( strcasecmp( psz_node_name, "head" ) && strcasecmp( psz_node_name, "tt:head" ) ) )
i_type = xml_ReaderNextNode( p_reader, &psz_node_name );
do
More information about the vlc-commits
mailing list