Merged revisions 116979 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

................
r116979 | russell | 2008-05-18 22:44:28 -0500 (Sun, 18 May 2008) | 12 lines

Merged revisions 116978 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r116978 | russell | 2008-05-18 22:44:04 -0500 (Sun, 18 May 2008) | 4 lines

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.

........

................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@116980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Russell Bryant 18 years ago
parent 0a6450103f
commit 27f6220a41

@ -7892,7 +7892,7 @@ static int socket_process(struct iax2_thread *thread)
/* 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 */

Loading…
Cancel
Save