[asterisk-commits] russell: trunk r359459 - in /trunk: ./ main/udptl.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 14 18:12:47 CDT 2012
Author: russell
Date: Wed Mar 14 18:12:42 2012
New Revision: 359459
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359459
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).
........
Merged revisions 359457 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 359458 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/main/udptl.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/main/udptl.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/udptl.c?view=diff&rev=359459&r1=359458&r2=359459
==============================================================================
--- trunk/main/udptl.c (original)
+++ trunk/main/udptl.c Wed Mar 14 18:12:42 2012
@@ -520,7 +520,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