Changeset 5db73af5fe905f85e3761f38fa15271cd3ef3071

Show
Ignore:
Timestamp:
16/10/07 14:44:47 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1192538687 +0000
git-parent:

[f4af45cf8961bf6003d8d232b6dd26620576263c]

git-author:
Rafaël Carré <funman@videolan.org> 1192538687 +0000
Message:

fix [22632]: check psz_arturl before using it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/meta.c

    rf4af45c r5db73af  
    166166 
    167167    char *psz_arturl = input_item_GetArtURL( p_item ); 
    168     if( !strncmp( psz_arturl, "file://", strlen( "file://" ) ) ) 
     168    if( psz_arturl && !strncmp( psz_arturl, "file://", strlen( "file://" ) ) ) 
    169169    { 
    170170        free( psz_arturl ); 
  • src/playlist/engine.c

    rf4af45c r5db73af  
    535535            /* We already have all needed meta, but we need art right now */ 
    536536            else if( p_playlist->p_fetcher->i_art_policy == ALBUM_ART_ALL && 
    537                      strncmp( psz_arturl, "file://", strlen("file://") ) ) 
     537                     !psz_arturl ? 1 : 
     538                        strncmp( psz_arturl, "file://", strlen("file://") ) ) 
    538539            { 
    539540                preparse_item_t p;