[asterisk-commits] russell: branch 1.4 r116978 - /branches/1.4/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun May 18 22:44:04 CDT 2008
Author: russell
Date: Sun May 18 22:44:04 2008
New Revision: 116978
URL: http://svn.digium.com/view/asterisk?view=rev&rev=116978
Log:
Avoid access of uninitialized memory. This caused a bunch of crashes for me
while doing load testing of development branch where I'm working on some
performance improvements.
Modified:
branches/1.4/channels/chan_iax2.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=116978&r1=116977&r2=116978
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Sun May 18 22:44:04 2008
@@ -6977,7 +6977,7 @@
/* allocate an iax_frame with 4096 bytes of data buffer */
fr = alloca(sizeof(*fr) + 4096);
- fr->callno = 0;
+ memset(fr, 0, sizeof(*fr));
fr->afdatalen = 4096; /* From alloca() above */
/* Copy frequently used parameters to the stack */
More information about the asterisk-commits
mailing list