[vlc-commits] [Git][videolan/vlc][3.0.x] preparser: fix crash when artwork title is null

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Apr 15 09:24:11 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
5db45a56 by Raiyan Aftab Ansari at 2026-04-15T07:19:00+00:00
preparser: fix crash when artwork title is null

This adds a safety check in ArtCacheGetDirPath to prevent a segmentation fault when processing attachment:// artwork URLs that are missing title metadata.

(cherry picked from commit cddb7dadf0259e6221998e4055f49ddacbdf2057)

- - - - -


1 changed file:

- src/playlist/art.c


Changes:

=====================================
src/playlist/art.c
=====================================
@@ -90,7 +90,7 @@ static char* ArtCacheGetDirPath( const char *psz_arturl, const char *psz_artist,
         struct md5_s md5;
         InitMD5( &md5 );
         AddMD5( &md5, psz_arturl, strlen( psz_arturl ) );
-        if( !strncmp( psz_arturl, "attachment://", 13 ) )
+        if( !strncmp( psz_arturl, "attachment://", 13 ) && psz_title != NULL )
             AddMD5( &md5, psz_title, strlen( psz_title ) );
         EndMD5( &md5 );
         char * psz_arturl_sanitized = psz_md5_hash( &md5 );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5db45a561075649742e0706f36cdc7434761fa04

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5db45a561075649742e0706f36cdc7434761fa04
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list