[vlc-devel] [PATCH 3/3] Initialize title strings with non NULL pointer

Rémi Denis-Courmont remi at remlab.net
Sat Jul 18 09:41:31 CEST 2020


Le lauantaina 18. heinäkuuta 2020, 5.07.00 EEST Daniel Glaas a écrit :
> Initialize title strings with non NULL pointer
> 
> If no valid title could be parsed out of an RSS feed, the segmentation fault
> caused VLC to crash. The reason therefore was that the expected pointers to
> the char buffers containing the titles were NULL pointers.

This won't work because strdup() can return NULL. Better handle the NULL 
values correctly.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list