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