Commit 60a8fefa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP sout: handle base64 decoding error

parent 19da2519
......@@ -567,9 +567,11 @@ int rtp_packetize_xiph_config( sout_stream_id_sys_t *id, const char *fmtp,
int i_data;
i_data = vlc_b64_decode_binary(&p_orig, b64);
if (i_data == 0)
if (i_data <= 9)
{
free(p_orig);
return VLC_EGENERIC;
assert(i_data > 9);
}
p_data = p_orig + 9;
i_data -= 9;
......
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