[vlc-commits] [Git][videolan/vlc][master] codec: subsusf: fix invalid deref

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Aug 25 13:20:13 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
4cab4d77 by François Cartegnie at 2026-08-25T12:27:20+00:00
codec: subsusf: fix invalid deref

refs #29729

- - - - -


1 changed file:

- modules/codec/subsusf.c


Changes:

=====================================
modules/codec/subsusf.c
=====================================
@@ -919,6 +919,9 @@ static void ParseUSFString( decoder_t *p_dec,
             psz_subtitle = psz_end - 1;
 
         psz_subtitle += strcspn( psz_subtitle, ">" );
+
+        if( *psz_subtitle == 0 )
+            break;
     }
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4cab4d77d807a33964539979167461fd39df3efb

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4cab4d77d807a33964539979167461fd39df3efb
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list