vlc | branch: master | Thomas Guillem <[email protected]> | Mon Jan 11 18:34:46 2016 +0100| [85c89d9850b05e1faab8e2219e57dc4e0fb96821] | committer: Thomas Guillem
keystore: fix crash if entry path found is NULL > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85c89d9850b05e1faab8e2219e57dc4e0fb96821 --- src/misc/keystore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/misc/keystore.c b/src/misc/keystore.c index 934b55a..96092bb 100644 --- a/src/misc/keystore.c +++ b/src/misc/keystore.c @@ -140,6 +140,8 @@ find_closest_path(vlc_keystore_entry *p_entries, unsigned i_count, { vlc_keystore_entry *p_entry = &p_entries[i]; const char *psz_entry_path = p_entry->ppsz_values[KEY_PATH]; + if (psz_entry_path == NULL) + continue; size_t i_entry_pathlen = strlen(psz_entry_path); if (strncasecmp(psz_decoded_path, psz_entry_path, i_entry_pathlen) == 0 _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
