git.videolan.org
/
vlc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RTP sout: handle base64 decoding error
[vlc.git]
/
modules
/
stream_out
/
rtpfmt.c
diff --git
a/modules/stream_out/rtpfmt.c
b/modules/stream_out/rtpfmt.c
index
6e828f8
..
baee82a
100644
(file)
--- 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;