[asterisk-commits] russell: branch 1.8 r359457 - /branches/1.8/main/udptl.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 14 18:00:23 CDT 2012
Author: russell
Date: Wed Mar 14 18:00:19 2012
New Revision: 359457
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359457
Log:
udptl: Ensure fec[] in udptl_build_packet() is initialized.
Scan results indicated that this array could be used uninitialized. At a quick
look, it looks correct. In any case, initializing it is a Good Thing (tm).
Modified:
branches/1.8/main/udptl.c
Modified: branches/1.8/main/udptl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/udptl.c?view=diff&rev=359457&r1=359456&r2=359457
==============================================================================
--- branches/1.8/main/udptl.c (original)
+++ branches/1.8/main/udptl.c Wed Mar 14 18:00:19 2012
@@ -517,7 +517,7 @@
static int udptl_build_packet(struct ast_udptl *s, uint8_t *buf, unsigned int buflen, uint8_t *ifp, unsigned int ifp_len)
{
- uint8_t fec[LOCAL_FAX_MAX_DATAGRAM * 2];
+ uint8_t fec[LOCAL_FAX_MAX_DATAGRAM * 2] = { 0, };
int i;
int j;
int seq;
More information about the asterisk-commits
mailing list