[vlc-commits] [Git][videolan/vlc][master] kwallet: fix invalid free
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Jan 2 20:37:01 UTC 2022
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
8f8f1fd0 by Lyndon Brown at 2022-01-02T18:15:30+00:00
kwallet: fix invalid free
- - - - -
1 changed file:
- modules/keystore/kwallet.c
Changes:
=====================================
modules/keystore/kwallet.c
=====================================
@@ -236,7 +236,10 @@ key2values( char* psz_key, vlc_keystore_entry* p_entry )
goto end;
if ( url.i_port && asprintf( &p_entry->ppsz_values[KEY_PORT],
"%d", url.i_port) == -1 )
+ {
+ p_entry->ppsz_values[KEY_PORT] = NULL;
goto end;
+ }
if ( url.psz_path && !( p_entry->ppsz_values[KEY_PATH] =
strdup( url.psz_path ) ) )
goto end;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8f8f1fd0ad3030ab319f6c5e4c4c146189c9d968
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8f8f1fd0ad3030ab319f6c5e4c4c146189c9d968
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list