[asterisk-commits] tilghman: branch 1.4 r89301 - /branches/1.4/channels/misdn/isdn_lib.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Nov 15 12:23:15 CST 2007


Author: tilghman
Date: Thu Nov 15 12:23:14 2007
New Revision: 89301

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89301
Log:
Fix an uninitialized memory read found by valgrind

Modified:
    branches/1.4/channels/misdn/isdn_lib.c

Modified: branches/1.4/channels/misdn/isdn_lib.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/misdn/isdn_lib.c?view=diff&rev=89301&r1=89300&r2=89301
==============================================================================
--- branches/1.4/channels/misdn/isdn_lib.c (original)
+++ branches/1.4/channels/misdn/isdn_lib.c Thu Nov 15 12:23:14 2007
@@ -1124,7 +1124,7 @@
 /** IFACE **/
 int init_bc(struct misdn_stack *stack,  struct misdn_bchannel *bc, int midev, int port, int bidx,  char *msn, int firsttime)
 {
-	unsigned char buff[1025];
+	unsigned char buff[1025] = "";
 	iframe_t *frm = (iframe_t *)buff;
 	int ret;
   




More information about the asterisk-commits mailing list