[vlc-devel] [PATCH 3/7] subsdec: fix potential unsigned overflow

Felix Abecassis felix.abecassis at gmail.com
Tue May 6 19:08:27 CEST 2014


---
 modules/codec/subsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 1b4276e..4faff70 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -737,7 +737,7 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
             {
                 bool   b_match     = false;
                 bool   b_ignore    = false;
-                int    i_len       = (psz_tag ? strlen(psz_tag) : 0) - 1;
+                int    i_len       = (psz_tag ? (int)strlen(psz_tag) : 0) - 1;
                 char  *psz_lastTag = NULL;
 
                 if( i_len >= 0 )
-- 
1.9.1




More information about the vlc-devel mailing list