[dvblast-devel] fix potential segfault
Christophe Massiot
git at videolan.org
Wed Oct 23 22:29:22 CEST 2013
dvblast | branch: master | Christophe Massiot <massiot at via.ecp.fr> | Wed Oct 23 21:48:43 2013 +0200| [5fdce5d225b06184df596196fb475519fbd016d0] | committer: Christophe Massiot
fix potential segfault
When switching rtp/udp or changing MTU (spotted by Coverity: CID 1109734).
> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=5fdce5d225b06184df596196fb475519fbd016d0
---
output.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/output.c b/output.c
index 43a8c6c..b3bf20a 100644
--- a/output.c
+++ b/output.c
@@ -591,6 +591,7 @@ void output_Change( output_t *p_output, const output_config_t *p_config )
p_packet = realloc( p_packet, sizeof(packet_t *)
+ (i_block_cnt - 1) * sizeof(block_t *) );
p_packet->pp_blocks = &p_packet->p_blocks;
+ p_output->p_last_packet = p_packet;
}
}
if ( p_config->b_do_remap )
More information about the dvblast-devel
mailing list