[vlc-commits] RTP sout: handle base64 decoding error
Rémi Denis-Courmont
git at videolan.org
Thu Apr 24 20:08:44 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 24 21:08:17 2014 +0300| [60a8fefa7f9f3768e5f4cf12b9c2aa95fd3b659c] | committer: Rémi Denis-Courmont
RTP sout: handle base64 decoding error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60a8fefa7f9f3768e5f4cf12b9c2aa95fd3b659c
---
modules/stream_out/rtpfmt.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/stream_out/rtpfmt.c b/modules/stream_out/rtpfmt.c
index 6e828f8..baee82a 100644
--- a/modules/stream_out/rtpfmt.c
+++ b/modules/stream_out/rtpfmt.c
@@ -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;
More information about the vlc-commits
mailing list