Commit 7ef197a4 authored by Filip Roséen's avatar Filip Roséen Committed by Hugo Beauzée-Luyssen

demux/playlist/xspf: prevent crash on empty <vlc:id>

psz_value is given a value when the node type is XML_READER_TEXT, but
given that this is not guaranteed to ever happen before
XML_READER_ENDELEM there is nothing stating that psz_value is not

fixes: #18125
Signed-off-by: default avatarHugo Beauzée-Luyssen <>
parent 94ed9b29
......@@ -741,7 +741,7 @@ static bool parse_extension_node COMPLEX_INTERFACE
/* special tag <vlc:id> */
if (!strcmp(p_handler->name, "vlc:id"))
if (!strcmp(p_handler->name, "vlc:id") && psz_value )
p_demux->p_sys->i_track_id = atoi(psz_value);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment