Commit 31de0101 authored by Gildas Bazin's avatar Gildas Bazin

* modules/mux/ogg.c: fixed potential buffer overflow.

parent 2be34a0f
...@@ -729,7 +729,7 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts ) ...@@ -729,7 +729,7 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux, mtime_t i_dts )
/* comment */ /* comment */
com[0] = PACKET_TYPE_COMMENT; com[0] = PACKET_TYPE_COMMENT;
i_com = snprintf( &com[1], 128, PACKAGE_VERSION" stream output" ) i_com = snprintf( &com[1], 127, PACKAGE_VERSION" stream output" )
+ 1; + 1;
op.packet = com; op.packet = com;
op.bytes = i_com; op.bytes = i_com;
......
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